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

Mac Build for CodePad #1

Open
Songtech-0912 opened this issue Dec 2, 2020 · 4 comments
Open

Mac Build for CodePad #1

Songtech-0912 opened this issue Dec 2, 2020 · 4 comments
Assignees

Comments

@Songtech-0912
Copy link

I've created an app bundle for CodePad that runs on Macs. This was built with a 2013 Mac running macOS Catalina 10.15.7. Download the build here. Would any developers be willing to add the build to CodePad's releases?

Screen Shot 2020-12-02 at 5 40 45 PM

@apollonian
Copy link
Member

@Songtech-0912 Yes, totally! Can you add a build script with a Darwin target to the package.json too? That'd be wonderful.

@Songtech-0912
Copy link
Author

@apollonian Thanks! I'll start working on a Darwin build script right away.

@Songtech-0912
Copy link
Author

@apollonian These build scripts have worked for Darwin and Linux, respectively:

"build:linux": "mkdir dist && electron-packager . CodePad --app-bundle-id=codepad --overwrite --asar=true --platform=linux --icon=build/icons/128x128.png --prune=true --out=dist",
"build:mac": "mkdir dist && electron-packager . CodePad --platform=darwin --arch=x64 --icon=build/icon.icns --prune=true --out=dist",

Just add this to the scripts section of the package.json. Note that the Linux script has an optional dependency on asar.

@apollonian
Copy link
Member

@Songtech-0912 Great!
Would you be interested in sending a PR? ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants