2021-08-28 17:23:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Run from SRCROOT
|
|
|
|
|
2022-06-22 19:05:46 +00:00
|
|
|
cp libCwtch.x64.dylib build/macos/Build/Products/Release/Cwtch.app/Contents/Frameworks/
|
2022-06-22 19:34:53 +00:00
|
|
|
cp libCwtch.arm64.dylib build/macos/Build/Products/Release/Cwtch.app/Contents/Frameworks/
|
2021-11-05 01:10:47 +00:00
|
|
|
cp -r macos/Tor build/macos/Build/Products/Release/Cwtch.app/Contents/MacOS/
|
2021-08-28 17:23:37 +00:00
|
|
|
|
2021-08-29 00:41:08 +00:00
|
|
|
rm Cwtch.dmg
|
2021-08-28 17:23:37 +00:00
|
|
|
rm -r macos_dmg
|
|
|
|
mkdir macos_dmg
|
2021-08-29 00:41:08 +00:00
|
|
|
cp -r "build/macos/Build/Products/Release/Cwtch.app" macos_dmg/
|
2021-08-28 17:23:37 +00:00
|
|
|
|
2021-11-05 01:10:47 +00:00
|
|
|
# https://github.com/create-dmg/create-dmg
|
2021-08-28 17:23:37 +00:00
|
|
|
create-dmg \
|
2021-08-29 00:41:08 +00:00
|
|
|
--volname "Cwtch" \
|
2021-08-28 17:23:37 +00:00
|
|
|
--volicon "macos/cwtch.icns" \
|
|
|
|
--window-pos 200 120 \
|
|
|
|
--window-size 800 400 \
|
|
|
|
--icon-size 100 \
|
2021-08-29 00:41:08 +00:00
|
|
|
--icon "Cwtch.app" 200 190 \
|
|
|
|
--hide-extension "Cwtch.app" \
|
2021-08-28 17:23:37 +00:00
|
|
|
--app-drop-link 600 185 \
|
2021-08-29 00:41:08 +00:00
|
|
|
"Cwtch.dmg" \
|
2021-08-28 17:23:37 +00:00
|
|
|
macos_dmg
|