-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-papagayong.sh
executable file
·59 lines (48 loc) · 1.61 KB
/
build-papagayong.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
54
55
56
57
58
59
#!/bin/bash
set -e
BASE_DIR=$(cd `dirname "$0"`; pwd)
DATA_DIR="$BASE_DIR/docker-builder-data"
BUILD_DIR=$DATA_DIR/build
PUBLISH_DIR=$BASE_DIR/publish
CONFIG_FILE="$BASE_DIR/config.sh"
PACKET_BUILD_DIR="$BUILD_DIR/packet"
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
if [ -f $CONFIG_FILE ]; then
source $CONFIG_FILE
fi
SCRIPT="$BASE_DIR/docker/run.sh"
run_appimage() {
export PLATFORM="$1"
export ARCH="$2"
echo ""
echo "Update papagayong for $PLATFORM-$ARCH"
echo ""
$SCRIPT update papagayong-master
$SCRIPT clean_before_do install_release papagayong-appimage
"$PUBLISH_DIR/publish.sh" \
"papagayong" \
"PapagayoNG-%VERSION%-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bit.appimage" \
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/install_release" \
"*.appimage" \
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/envdeps_release/version-papagayong-master"
}
run_nsis() {
export PLATFORM="$1"
export ARCH="$2"
echo ""
echo "Update papagayong for $PLATFORM-$ARCH"
echo ""
$SCRIPT update papagayong-master
$SCRIPT clean_before_do unpack papagayong-master
# QUICK HACK:
$SCRIPT shell papagayong-master "/build/script/packet/papagayong-master.files/build-win.sh"
"$PUBLISH_DIR/publish.sh" \
"papagayong" \
"PapagayoNG-%VERSION%-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bit.exe" \
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-master/build" \
"*.exe" \
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-master/unpack/version-papagayong-master"
}
run_appimage linux 64
run_appimage linux 32
run_nsis win 32