-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Using https://github.com/rogerwang/node-webkit.
- Node-webkit executables are placed inside
nwdirectory. - Copy everything from the build folder of codemagic into
src(assetsdir,index.html) - Replace all instances of
//fromindex.htmlwithhttp://ones. - create a
package.jsonfile insidesrc - execute the build script
Folder structure:
.
├── build
│ ├── app
│ └── nw.pak
├── make
├── nw
│ ├── credits.html
│ ├── libffmpegsumo.so
│ ├── nw
│ ├── nw.pak
│ └── nwsnapshot
└── src
├── assets
├── index.html
└── package.json
src/package.json:
{
"name": "codemagic",
"main": "index.html",
"node-remote": "*",
"window": {
"title": "codemagic",
"toolbar": false,
"frame": true,
"resizable": true
}
}build script:
cd ~/repos/codemagic-desktop && \
cd src && \
zip -r ../build/app.nw * && \
cd ..
cat ./nw/nw build/app.nw > build/app && \
chmod +x build/app && \
cp nw/nw.pak build/ && \
rm build/app.nwReactions are currently unavailable