Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
zaru committed May 12, 2020
1 parent 763ef43 commit 3b454b6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
dist-bodypix-app/
node_modules/

releases/**/*.app
releases/**/*.dmg
releases/mewcam-darwin-x64/
Binary file added releases/app/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions releases/build_dmg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

test -f mewcam.dmg && rm mewcam.dmg
test -f rw.mewcam.dmg && rm rw.mewcam.dmg
create-dmg \
--volname "mewcam" \
--background "./app/[email protected]" \
--window-pos 400 200 \
--window-size 400 400 \
--icon-size 128 \
--icon "mewcam.app" 50 190 \
--app-drop-link 240 190 \
--hide-extension "mewcam.app" \
"mewcam.dmg" \
"./app/"
8 changes: 8 additions & 0 deletions releases/release_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

rm -rf $1
rm -rf ./app/mewcam.app
cp -R ./mewcam-darwin-x64/mewcam.app ./app
bash ./build_dmg.sh
mkdir $1
mv mewcam.dmg $1

0 comments on commit 3b454b6

Please sign in to comment.