forked from squeak-smalltalk/squeak-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare_win.sh
executable file
·38 lines (29 loc) · 1.23 KB
/
prepare_win.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
#!/usr/bin/env bash
################################################################################
# PROJECT: Squeak Bundle Generation
# FILE: prepare_win.sh
# CONTENT: Generate bundle for Windows.
#
# AUTHORS: Fabio Niephaus, Hasso Plattner Institute, Potsdam, Germany
# Marcel Taeumel, Hasso Plattner Institute, Potsdam, Germany
################################################################################
travis_fold start win_bundle "Creating Windows bundle for ${TRAVIS_SMALLTALK_VERSION}..."
BUNDLE_NAME_WIN="${IMAGE_NAME}-${VERSION_VM_WIN}-Windows"
BUNDLE_DIR="${BUILD_DIR}/${BUNDLE_NAME_WIN}"
echo "...creating directories..."
mkdir "${BUNDLE_DIR}"
echo "...copying Windows VM..."
cp -R "${TMP_DIR}/${VM_WIN}/" "${BUNDLE_DIR}"
copy_resources "${BUNDLE_DIR}"
echo "...merging template..."
cp "${AIO_TEMPLATE_DIR}/Squeak.app/Contents/Win32/Squeak.ini" "${BUNDLE_DIR}/"
echo "...setting permissions..."
chmod +x "${BUNDLE_DIR}/Squeak.exe"
echo "...applying various patches..."
# Squeak.ini
sed -i ".bak" "s/%WindowTitle%/${WINDOW_TITLE}/g" "${BUNDLE_DIR}/Squeak.ini"
rm -f "${BUNDLE_DIR}/Squeak.ini.bak"
# Remove .map files from $BUNDLE_DIR
rm -f "${BUNDLE_DIR}/"*.map
compress "${BUNDLE_NAME_WIN}"
travis_fold end win_bundle