File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
src/linux/Packaging.Linux Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 55
55
if [ -z " $SYMBOLS " ]; then
56
56
die " --symbols was not set"
57
57
fi
58
- if [ -z " $ARCH " ]; then
59
- die " --arch was not set"
58
+ if [ -z " $RUNTIME " ]; then
59
+ die " --runtime was not set"
60
60
fi
61
61
62
62
TAROUT=" $PROJ_OUT /$CONFIGURATION /tar/"
63
- TARBALL=" $TAROUT /gcm-linux_ $ARCH .$VERSION .tar.gz"
64
- SYMTARBALL=" $TAROUT /gcm-linux_ $ARCH .$VERSION -symbols.tar.gz"
63
+ TARBALL=" $TAROUT /gcm-$RUNTIME .$VERSION .tar.gz"
64
+ SYMTARBALL=" $TAROUT /gcm-$RUNTIME .$VERSION -symbols.tar.gz"
65
65
66
66
DEBOUT=" $PROJ_OUT /$CONFIGURATION /deb"
67
67
DEBROOT=" $DEBOUT /root"
68
- DEBPKG=" $DEBOUT /gcm-linux_ $ARCH .$VERSION .deb"
68
+ DEBPKG=" $DEBOUT /gcm-$RUNTIME .$VERSION .deb"
69
69
mkdir -p " $DEBROOT "
70
70
71
71
# Set full read, write, execute permissions for owner and just read and execute permissions for group and other
@@ -100,6 +100,22 @@ INSTALL_TO="$DEBROOT/usr/local/share/gcm-core/"
100
100
LINK_TO=" $DEBROOT /usr/local/bin/"
101
101
mkdir -p " $DEBROOT /DEBIAN" " $INSTALL_TO " " $LINK_TO " || exit 1
102
102
103
+ # Determine architecture for debian control file from the runtime architecture
104
+ case $RUNTIME in
105
+ linux-x64)
106
+ ARCH=" amd64"
107
+ ;;
108
+ linux-arm64)
109
+ ARCH=" arm64"
110
+ ;;
111
+ linux-arm)
112
+ ARCH=" armhf"
113
+ ;;
114
+ * )
115
+ die " Incompatible runtime architecture given for pack.sh"
116
+ ;;
117
+ esac
118
+
103
119
# make the debian control file
104
120
# this is purposefully not indented, see
105
121
# https://stackoverflow.com/questions/9349616/bash-eof-in-if-statement
You can’t perform that action at this time.
0 commit comments