-
Notifications
You must be signed in to change notification settings - Fork 0
/
exultrelease.sh
executable file
·53 lines (39 loc) · 1.03 KB
/
exultrelease.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/zsh
#functions
. ./functions.sh
. ./snapshots/exult.sh
headermain EXULT Release
bundle_name=Exult_libs.app
program=exult
cd ~/code/exult
#configure options for all arches
CONF_OPT="-q --enable-exult-studio-support --enable-mt32emu --enable-fluidsynth --disable-alsa --disable-timidity-midi --disable-tools"
export EXPACK=/opt/x86_64/bin/expack
export HEAD2DATA=/opt/x86_64/bin/head2data
#i386
build_i386
#arm64
build_arm64
#x86_64
build_x86_64
#deploy
deploy
{
#make fat exult binary
lipo_build x86_64 arm64 i386
# rename the libs bundle to the actual bundle - need to use a lib bundle, since otherwise "make clean" between arches would wipe the bundle
mv Exult_libs.app Exult.app
#bundle
make -s bundle || error bundle
make -s studiobundle || error studiobundle
#image, upload
export REVISION=" V1.x"
make -s osxdmg || error disk image
make -s studiodmg || error studio disk image
# notarize it
notar
mv exult-1.x.dmg ~/Snapshots/exult/
} 2>&1 | teelog -a ; pipestatus || return
#clean
make distclean > /dev/null
success