-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Next2D/main
publish
- Loading branch information
Showing
12 changed files
with
85 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@next2d/framework-typescript-template", | ||
"description": "Next2D Framework default TypeScript template.", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "https://next2d.app", | ||
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new", | ||
"author": "Toshiyuki Ienaga<[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
**/node_modules/* | ||
src/Packages.ts | ||
src/config/Config.ts | ||
electron.index.json | ||
src/Packages.* | ||
src/config/Config.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ dist-ssr | |
|
||
src/Packages.* | ||
src/config/Config.* | ||
electron.index.json | ||
electron/resources |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = "1"; | ||
|
||
const { app, screen, BrowserWindow } = require("electron"); | ||
|
||
app.commandLine.appendSwitch("disable-http-cache"); | ||
|
||
const createWindow = () => | ||
{ | ||
const primaryDisplay = screen.getPrimaryDisplay(); | ||
const { width, height } = primaryDisplay.workAreaSize; | ||
|
||
const browserWindow = new BrowserWindow({ | ||
"width": width, | ||
"height": height, | ||
"titleBarStyle": "hidden", | ||
"webPreferences": { | ||
"nodeIntegration": false | ||
} | ||
}); | ||
|
||
/** | ||
* Chrome Developer Tools | ||
*/ | ||
// browserWindow.webContents.openDevTools(); | ||
|
||
browserWindow.loadFile("./resources/index.html"); | ||
}; | ||
|
||
app | ||
.whenReady() | ||
.then(createWindow); | ||
|
||
app | ||
.on("window-all-closed", () => | ||
{ | ||
/** | ||
* windowsならアプリを終了、macならdockに滞在 | ||
* Exit apps if windows, stay in dock if mac | ||
*/ | ||
if (process.platform !== "darwin") { | ||
app.quit(); | ||
} | ||
}); | ||
|
||
app | ||
.on("activate", () => | ||
{ | ||
/** | ||
* アプリで起動している画面がなければアプリを起動 | ||
* If there is no screen running on the application, start the application. | ||
*/ | ||
if (BrowserWindow.getAllWindows().length === 0) { | ||
createWindow(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "example-product-name", | ||
"version": "0.0.1", | ||
"description": "Your Production Description", | ||
"main": "index.js", | ||
"config": { | ||
"forge": { | ||
"packagerConfig": { | ||
"icon": "./electron/icons/icon.icns", | ||
"asar": true | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"electron": "^27.0.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters