Last active
January 16, 2016 14:40
-
-
Save romanov/abc494ee7b08f232f539 to your computer and use it in GitHub Desktop.
node-webkit debug on Windows via Powershell
This file contains hidden or 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
| # path to nw.exe | |
| $nodePath = "d:\Projects\node-webkit-v0.9.2-win-ia32\nw.exe" | |
| # release file path | |
| $releaseFile = "d:\Projects\app.nw" | |
| # path to the app project | |
| $appFolder = "d:\Projects\nodeApp1\app" | |
| function ZipFiles( $zipfilename, $sourcedir ) | |
| { | |
| Add-Type -Assembly System.IO.Compression.FileSystem | |
| $compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal | |
| [System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, | |
| $zipfilename, $compressionLevel, $false) | |
| } | |
| function Debug(){ | |
| if(Test-Path $releaseFile){ | |
| Remove-Item $releaseFile | |
| } | |
| ZipFiles $releaseFile $appFolder | |
| & $nodePath $releaseFile | |
| } |
This file contains hidden or 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
| 1. Run in PowerShell: "Set-ExecutionPolicy -ExecutionPolicy Unrestricted" | |
| 2. Setup paths | |
| 3. Execute Script | |
| 4. Now you can use Debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment