File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 6
6
update : true
7
7
packages :
8
8
- libmagic-dev
9
+ - libmagic-dev:i386
10
+ - libjpeg-dev
11
+ - libjpeg-dev:i386
9
12
- cimg-dev
10
13
- automake # required for patchelf
11
14
15
+ environment :
16
+ - ARCH=x86_64
17
+ - ARCH=i386
18
+
12
19
install :
13
20
- git clone https://github.com/NixOS/patchelf.git
14
21
- cd patchelf
Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ OLD_CWD=$(readlink -f .)
26
26
27
27
pushd " $BUILD_DIR "
28
28
29
- cmake " $REPO_ROOT "
29
+ if [ " $ARCH " == " x86_64" ]; then
30
+ EXTRA_CMAKE_ARGS=()
31
+ elif [ " $ARCH " == " i386" ]; then
32
+ EXTRA_CMAKE_ARGS=(" -DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT /cmake/toolchains/i386-linux-gnu.cmake" )
33
+ else
34
+ echo " Architecture not supported: $ARCH " 1>&2
35
+ exit 1
36
+ fi
37
+
38
+ cmake " $REPO_ROOT " " ${EXTRA_CMAKE_ARGS[@]} "
30
39
31
40
make VERBOSE=1
32
41
@@ -37,12 +46,12 @@ LINUXDEPLOY_ARGS=("--init-appdir" "--appdir" "AppDir" "-e" "bin/linuxdeploy" "-i
37
46
bin/linuxdeploy " ${LINUXDEPLOY_ARGS[@]} "
38
47
39
48
# bundle AppImage plugin
40
- wget https://github.com/TheAssassin/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64 .AppImage
41
- chmod +x linuxdeploy-plugin-appimage* .AppImage
42
- mv linuxdeploy-plugin-appimage* .AppImage AppDir/usr/bin/
49
+ wget https://github.com/TheAssassin/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-" $ARCH " .AppImage
50
+ chmod +x linuxdeploy-plugin-appimage- " $ARCH " .AppImage
51
+ mv linuxdeploy-plugin-appimage- " $ARCH " .AppImage AppDir/usr/bin/
43
52
44
53
# build AppImage using plugin
45
- AppDir/usr/bin/linuxdeploy-plugin-appimage* .AppImage --appdir AppDir/
54
+ AppDir/usr/bin/linuxdeploy-plugin-appimage- " $ARCH " .AppImage --appdir AppDir/
46
55
47
56
# rename AppImage to avoid "Text file busy" issues when using it to create another one
48
57
mv ./linuxdeploy* .AppImage test.AppImage
You can’t perform that action at this time.
0 commit comments