Created
July 21, 2021 11:15
-
-
Save redtide/5cd6962a4d2466aeb273a6e290c8eae2 to your computer and use it in GitHub Desktop.
Lite XL AppDMG local script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
if test -f lite-xl.dmg; then rm lite-xl.dmg; fi | |
if test -f lite-xl-dmg.json; then rm lite-xl-dmg.json; fi | |
meson install -C build | |
cat > lite-xl-dmg.json << EOF | |
{ | |
"title": "Lite XL", | |
"icon": "$(pwd)/resources/icons/icon.icns", | |
"background": "$(pwd)/resources/macos/appdmg.png", | |
"window": { | |
"position": { | |
"x": 360, | |
"y": 360 | |
}, | |
"size": { | |
"width": 480, | |
"height": 360 | |
} | |
}, | |
"contents": [ | |
{ "x": 144, "y": 248, "type": "file", "path": "$(pwd)/Lite XL.app" }, | |
{ "x": 336, "y": 248, "type": "link", "path": "/Applications" } | |
] | |
} | |
EOF | |
~/node_modules/appdmg/bin/appdmg.js lite-xl-dmg.json "$(pwd)/lite-xl.dmg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment