owenc4a4 / nw-tools Goto Github PK
View Code? Open in Web Editor NEWtools for node-webkit
Home Page: https://github.com/nwjs/nw.js
tools for node-webkit
Home Page: https://github.com/nwjs/nw.js
Nice tool!
Would be great if it was possible to specify what version, in case you'd wanna package with an RC for example. And some of the chromium args needs to be run before the package.json is read, for example --disable-gpu
, so would be great if it's possible add the flags as well.
My packaged app, mac version, failed to launch. I figured out it was because there probably was some file missing the 'x' flag in the unix permissions. I ran "chmod -R 755" on the entire app directory and that seemed to fix it. Certainly an easy workaround, but would be nice to have in the packaging directly
Error from line 93 in package.py
Looks like subprocess.call should take an array of arguments i e ['chmod', '-R', '755', ... rather than 'chmod -R 755 %s' as its first argument. Referencing this http://stackoverflow.com/questions/15989547/the-shell-command-for-sending-email-does-not-work-in-python-subprocess-call
Running mac os x 10.8, python v 2.7.2
Stack trace:
Traceback (most recent call last):
File "/Users/zache/Sites/fgdo/build/nw-tools/nw_package_tool.py", line 36, in
main()
File "/Users/zache/Sites/fgdo/build/nw-tools/nw_package_tool.py", line 32, in main
nw.package.main(*_args.dict)
File "/Users/zache/Sites/fgdo/build/nw-tools/nw/package.py", line 228, in main
PackageApp(targets)
File "/Users/zache/Sites/fgdo/build/nw-tools/nw/package.py", line 179, in PackageApp
GenerateExecutableApp(nw_path, t)
File "/Users/zache/Sites/fgdo/build/nw-tools/nw/package.py", line 93, in GenerateExecutableApp
shell=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 493, in call
return Popen(_popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 629, in init
raise TypeError("bufsize must be an integer")
TypeError: bufsize must be an integer
Error. Exited with code: 1
Hi there,
any idea what is going wrog here (MacOSX)?
nw-tools christian$ sudo python nw_package_tool.py --all --keep ngmd
Begin to compress app.
Compressing app ends.
Get newest stable version
Download node-webkit binary
Downloading: /Users/christian/Library/Application Support/node-webkit/updates/node-webkit-v0.7.2-win-ia32.zip.tmp Bytes: 25038596
25038596 [100.00%]
Traceback (most recent call last):
File "nw_package_tool.py", line 36, in
main()
File "nw_package_tool.py", line 32, in main
nw.package.main(**args.dict)
File "/Users/christian/GitHub/nw-tools/nw/package.py", line 228, in main
PackageApp(targets)
File "/Users/christian/GitHub/nw-tools/nw/package.py", line 172, in PackageApp
nw_path = CheckNwFiles(t)
File "/Users/christian/GitHub/nw-tools/nw/package.py", line 148, in CheckNwFiles
nw_path = getnwfromnet.GetNwFromNet(nw_ver, target, options['keep'])
File "/Users/christian/GitHub/nw-tools/nw/getnwfromnet.py", line 84, in GetNwFromNet
zip.extractall(update_path_)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 962, in extractall
self.extract(zipinfo, path, pwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 950, in extract
return self._extract_member(member, path, pwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 993, in _extract_member
source = self.open(member, pwd=pwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 882, in open
zef_file = open(self.filename, 'rb')
Thanks.
Issue on Windows:
python nw_package_tool.py --all ngmd
Begin to compress app.
Compressing app ends.
Get newest stable version
Download node-webkit binary
Traceback (most recent call last):
File "nw_package_tool.py", line 36, in
main()
File "nw_package_tool.py", line 32, in main
nw.package.main(**args.dict)
File "C:\Users\Christian\Documents\nw-tools\nw\package.py", line 228, i
n main
PackageApp(targets)
File "C:\Users\Christian\Documents\nw-tools\nw\package.py", line 172, i
n PackageApp
nw_path = CheckNwFiles(t)
File "C:\Users\Christian\Documents\nw-tools\nw\package.py", line 148, i
n CheckNwFiles
nw_path = getnwfromnet.GetNwFromNet(nw_ver, target, options['keep'])
File "C:\Users\Christian\Documents\nw-tools\nw\getnwfromnet.py", line 8
3, in GetNwFromNet
shutil.rmtree(nw_path_)
File "C:\Python27\lib\shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:\Python27\lib\shutil.py", line 250, in rmtree
os.remove(fullname)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: 'C:\Users\Christian\AppData\Local\node-webkit\upd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.