Skip to content

Instantly share code, notes, and snippets.

@redtide
Created July 21, 2021 11:16
Show Gist options
  • Save redtide/3e69e6f4f16aa3e4e03d4e5934737e1c to your computer and use it in GitHub Desktop.
Save redtide/3e69e6f4f16aa3e4e03d4e5934737e1c to your computer and use it in GitHub Desktop.
Lite XL create-dmg local script
#!/bin/bash
set -ex
if test -f lite-xl.dmg; then rm lite-xl.dmg; fi
if test -d "$(pwd)/createdmg"; then rm -rf "$(pwd)/createdmg"; fi
meson install -C build
mkdir createdmg
cp -r "Lite XL.app" createdmg/
create-dmg \
--volname "Lite XL" \
--volicon "$(pwd)/resources/icons/icon.icns" \
--background "$(pwd)/resources/macos/appdmg.png" \
--window-pos 360 360 \
--window-size 480 360 \
--icon-size 64 \
--icon "Lite XL.app" 144 248 \
--app-drop-link 336 248 \
--hide-extension "Lite XL.app" \
"$(pwd)/lite-xl.dmg" \
"$(pwd)/createdmg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment