Skip to content

Commit

Permalink
release packaging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Trylobot committed Jul 15, 2014
1 parent 70d04a7 commit ba2f09a
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 7 deletions.
3 changes: 0 additions & 3 deletions ai/rando/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "hive-ai-rando",
"description": "Rando[m]",
"dependencies": {
"express": "~4.2.0"
},
"active": true
}
16 changes: 16 additions & 0 deletions nw/make_release_package.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
mkdir dist
mkdir dist\temp

node print_version.js > dist\temp\version.txt
node print_package_json_release.js > dist\temp\package.json

set version=X.X.X
set /p version= < dist\temp\version.txt

del dist\trylobot-hive-v%version%.nw
7z a -tzip dist\trylobot-hive-v%version%.nw @release_file_list.txt

del dist\temp\version.txt
del dist\temp\package.json
rmdir dist\temp

5 changes: 5 additions & 0 deletions nw/print_package_json_release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var package_json = require("./package.json"); // nodewebkit package json
//
package_json["window"]["toolbar"] = false;
//
console.log( JSON.stringify( package_json ));
2 changes: 2 additions & 0 deletions nw/print_version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var package_json = require("../package.json"); // main hive project json
console.log( package_json.version );
16 changes: 16 additions & 0 deletions nw/release_file_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.json
dist\temp\package.json
*.png
*.css
*.js
*.html
fonts\
themes\
..\core\
..\ai\
node_modules\mersenne\
node_modules\async\
node_modules\lodash\
bower_components\tweenjs\src\Tween.js
bower_components\pixi.js\bin\pixi.dev.js
bower_components\dat.gui\dat.gui.js
2 changes: 0 additions & 2 deletions nw/release_package_linux.bat

This file was deleted.

2 changes: 0 additions & 2 deletions nw/release_package_win.bat

This file was deleted.

0 comments on commit ba2f09a

Please sign in to comment.