Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop version through node-webkit #70

Open
varemenos opened this issue Apr 19, 2014 · 0 comments
Open

Desktop version through node-webkit #70

varemenos opened this issue Apr 19, 2014 · 0 comments
Assignees
Milestone

Comments

@varemenos
Copy link
Owner

Using https://github.com/rogerwang/node-webkit.

  1. Node-webkit executables are placed inside nw directory.
  2. Copy everything from the build folder of codemagic into src (assets dir, index.html)
  3. Replace all instances of // from index.html with http:// ones.
  4. create a package.json file inside src
  5. 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.nw
@varemenos varemenos added feature and removed feature labels Apr 19, 2014
@varemenos varemenos added this to the Beta milestone Apr 19, 2014
@varemenos varemenos self-assigned this Apr 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant