-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework nwjs builder/runner + Update some dependencies
- Loading branch information
Showing
33 changed files
with
24,003 additions
and
23,906 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
421 changes: 224 additions & 197 deletions
421
benchmark/01-empty-app/DotnetMauiVue/vue-project/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
benchmark/01-empty-app/nw.js/main.js → benchmark/01-empty-app/nw.js/app/main.js
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,5 +1,6 @@ | ||
window.addEventListener('load', () => { | ||
console.log('App started and loaded !'); | ||
console.log('App started and loaded !'); | ||
console.error('App started and loaded !'); | ||
process.stdout.write('App started and loaded !'); | ||
process.stderr.write('App started and loaded !'); | ||
}); |
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,7 @@ | ||
{ | ||
"name": "01-empty-app", | ||
"version": "1.0.0", | ||
"main": "index.html", | ||
"node-main": "main.js", | ||
"chromium-args": "--enable-logging=stderr" | ||
} |
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,27 @@ | ||
import os from 'node:os'; | ||
import nwbuild from 'nw-builder'; | ||
|
||
let archs = []; | ||
if(os.platform() === 'win32') { | ||
archs = ['ia32', 'x64']; | ||
} else if(os.platform() === 'darwin') { | ||
archs = ['x64', 'arm64']; | ||
} else if(os.platform() === 'linux') { | ||
archs = ['ia32', 'x64']; | ||
} else { | ||
throw new Error('Unsupported platform !'); | ||
} | ||
|
||
for(const arch of archs) { | ||
console.log(`Building for ${arch} ...`); | ||
await nwbuild({ | ||
mode: 'build', | ||
version: 'stable', | ||
flavor: 'normal', | ||
outDir: `./dist/01-empty-app-${os.platform()}-${arch}/`, | ||
srcDir: './app', | ||
arch, | ||
glob: false | ||
}); | ||
console.log(`Building for ${arch} ... Done!`); | ||
} |
Oops, something went wrong.