-
Notifications
You must be signed in to change notification settings - Fork 30
/
release.sh
executable file
·34 lines (25 loc) · 877 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
xctool \
-workspace Hearthstone-Deck-Tracker.xcworkspace \
-scheme Hearthstone-Deck-Tracker \
-configuration Release\
CONFIGURATION_BUILD_DIR=`pwd`/build
mkdir build/cn
mkdir build/en
cp -R build/Deck\ Tracker.app build/cn
cp -R build/Deck\ Tracker.app build/en
app_dir_cn="build/cn/Deck\ Tracker.app/"
app_dir_en="build/en/Deck\ Tracker.app/"
image_cn="Contents/Resources/Images/cn"
image_en="Contents/Resources/Images/en"
rm -rf build/cn/Deck\ Tracker.app/Contents/Resources/Images/en
rm -rf build/en/Deck\ Tracker.app/Contents/Resources/Images/cn
mv build/en/Deck\ Tracker.app/Contents/Resources/Images/en \
build/en/Deck\ Tracker.app/Contents/Resources/Images/cn
# ../create-dmg/create-dmg \
# --window-size 500 300 \
# --icon-size 96 \
# --volname "Deck Tracker" \
# --app-drop-link 380 205 \
# --icon "Deck Tracker" 110 205 \
# "Deck Tracker.dmg" \
# build/en/