| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
set -e |
| 9 |
|
| 10 |
|
| 11 |
export PRERELEASE_VERSION=41 |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
PATCHES="`pwd`" |
| 17 |
|
| 18 |
cd /tmp |
| 19 |
|
| 20 |
rm -rf sdl2-win32 |
| 21 |
cp -prv ~/tmp/sdl2-win32 sdl2-win32 |
| 22 |
|
| 23 |
rm -rf x16-release |
| 24 |
mkdir x16-release |
| 25 |
cd x16-release |
| 26 |
|
| 27 |
git clone https://github.com/commanderx16/x16-emulator |
| 28 |
git clone https://github.com/commanderx16/x16-rom |
| 29 |
git clone https://github.com/commanderx16/x16-docs |
| 30 |
(cd x16-emulator; git reset --hard r$PRERELEASE_VERSION) |
| 31 |
(cd x16-rom; git reset --hard r$PRERELEASE_VERSION) |
| 32 |
(cd x16-docs; git reset --hard r$PRERELEASE_VERSION) |
| 33 |
zip -r1m x16.zip x16-emulator x16-rom x16-docs |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
unzip x16.zip |
| 38 |
( |
| 39 |
cd x16-emulator |
| 40 |
make package_mac |
| 41 |
mv x16emu_mac.zip ../x16emu_mac_arm.zip |
| 42 |
) |
| 43 |
rm -rf x16-emulator x16-rom x16-docs |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
scp x16.zip intel16.local:/tmp |
| 48 |
ssh intel16.local "cd /tmp; rm -rf x16-emulator x16-rom x16-docs; unzip x16.zip; cd x16-emulator; PATH=/usr/local/bin:$PATH PRERELEASE_VERSION=$PRERELEASE_VERSION make package_mac" |
| 49 |
scp intel16.local:/tmp/x16-emulator/x16emu_mac.zip x16emu_mac_intel.zip |
| 50 |
|
| 51 |
|
| 52 |
( |
| 53 |
mkdir combine |
| 54 |
cd combine |
| 55 |
(mkdir arm; cd arm; unzip ../../x16emu_mac_arm.zip) |
| 56 |
(mkdir intel; cd intel; unzip ../../x16emu_mac_intel.zip) |
| 57 |
( |
| 58 |
cd arm |
| 59 |
mv x16emu x16emu.arm |
| 60 |
lipo x16emu.arm ../intel/x16emu -create -output x16emu |
| 61 |
rm x16emu.arm |
| 62 |
zip -r ../../x16emu_mac.zip * |
| 63 |
) |
| 64 |
) |
| 65 |
rm -rf combine |
| 66 |
rm x16emu_mac_arm.zip |
| 67 |
rm x16emu_mac_intel.zip |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
unzip x16.zip |
| 72 |
( |
| 73 |
cd x16-emulator |
| 74 |
make package_linux |
| 75 |
mv x16emu_linux.zip .. |
| 76 |
) |
| 77 |
rm -rf x16-emulator x16-rom x16-docs |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
unzip x16.zip |
| 82 |
( |
| 83 |
cd x16-emulator |
| 84 |
patch -p1 < $PATCHES/patch1.diff |
| 85 |
make package_win |
| 86 |
mv x16emu_win.zip .. |
| 87 |
) |
| 88 |
rm -rf x16-emulator x16-rom x16-docs |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
for i in x16emu_mac x16emu_linux x16emu_win; do |
| 94 |
mv $i.zip $i-r$PRERELEASE_VERSION$PRE.zip |
| 95 |
done |
| 96 |
|
| 97 |
open . |