codepad icon indicating copy to clipboard operation
codepad copied to clipboard

Mac Build for CodePad

Open Songtech-0912 opened this issue 5 years ago • 4 comments

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

Songtech-0912 avatar Dec 02 '20 09:12 Songtech-0912

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

apollonian avatar Dec 03 '20 13:12 apollonian

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

Songtech-0912 avatar Dec 03 '20 13:12 Songtech-0912

@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.

Songtech-0912 avatar Dec 10 '20 11:12 Songtech-0912

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

apollonian avatar Dec 11 '20 14:12 apollonian