Skip to content

Commit

Permalink
Project: update nw version and update script compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Dec 30, 2023
1 parent 0c218eb commit 481d380
Show file tree
Hide file tree
Showing 5 changed files with 1,413 additions and 1,557 deletions.
2 changes: 1 addition & 1 deletion comp-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const COMPILER = require('./compile.js');

// Set values
COMPILER.nwFlavor = 'sdk';
COMPILER.nwVersion = '0.77.0';
COMPILER.nwVersion = '0.82.0';

// Start process
COMPILER.run();
2 changes: 1 addition & 1 deletion comp-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const COMPILER = require('./compile.js');

// Set values
COMPILER.nwFlavor = 'normal';
COMPILER.nwVersion = '0.77.0';
COMPILER.nwVersion = '0.82.0';

// Start process
COMPILER.run();
6 changes: 6 additions & 0 deletions compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ module.exports = {
// Run nw-builder
compileData.build().then(function(){

// Remove package dir
if (fs.existsSync('./build/R3 Auto Map Gen/win64/package.nw') === !0){
const rimraf = require('rimraf');
rimraf.sync('./build/R3 Auto Map Gen/win64/package.nw');
}

// Copy required files to build dir
fs.writeFileSync('./build/R3 Auto Map Gen/win64/help.txt', help, 'utf8');
fs.writeFileSync('./build/R3 Auto Map Gen/win64/LICENSE', license, 'utf8');
Expand Down
Loading

0 comments on commit 481d380

Please # to comment.