Git Product home page Git Product logo

nw-tools's People

Contributors

owenc4a4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nw-tools's Issues

Feature Request: Specify version + chromium args

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.

mac packages won't run without executable flag

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

bufsize must be an integer

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

Error downloading nw files

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')

IOError: [Errno 2] No such file or directory: '/Users/christian/Library/Application Support/node-webkit/updates/node-webkit-v0.7.2-win-ia32.zip'

Thanks.

Issue on Windows

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

ates\node-webkit-v0.7.2-win-ia32.zip'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.