Skip to content

Instantly share code, notes, and snippets.

@romanov
Last active January 16, 2016 14:40
Show Gist options
  • Select an option

  • Save romanov/abc494ee7b08f232f539 to your computer and use it in GitHub Desktop.

Select an option

Save romanov/abc494ee7b08f232f539 to your computer and use it in GitHub Desktop.
node-webkit debug on Windows via Powershell
# 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
}
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