forked from p15670423/monkey
build: Move some constants to top of build_appimage.sh
This commit is contained in:
parent
312c98c784
commit
9d8fc489c9
|
@ -13,6 +13,10 @@ ISLAND_PATH="$INSTALL_DIR/monkey_island"
|
||||||
MONGO_PATH="$ISLAND_PATH/bin/mongodb"
|
MONGO_PATH="$ISLAND_PATH/bin/mongodb"
|
||||||
ISLAND_BINARIES_PATH="$ISLAND_PATH/cc/binaries"
|
ISLAND_BINARIES_PATH="$ISLAND_PATH/cc/binaries"
|
||||||
|
|
||||||
|
NODE_SRC=https://deb.nodesource.com/setup_12.x
|
||||||
|
APP_TOOL_URL=https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
||||||
|
PYTHON_APPIMAGE_URL="https://github.com/niess/python-appimage/releases/download/python3.7/python3.7.9-cp37-cp37m-manylinux1_x86_64.AppImage"
|
||||||
|
|
||||||
is_root() {
|
is_root() {
|
||||||
return "$(id -u)"
|
return "$(id -u)"
|
||||||
}
|
}
|
||||||
|
@ -34,8 +38,6 @@ log_message() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_nodejs() {
|
install_nodejs() {
|
||||||
NODE_SRC=https://deb.nodesource.com/setup_12.x
|
|
||||||
|
|
||||||
log_message "Installing nodejs"
|
log_message "Installing nodejs"
|
||||||
|
|
||||||
curl -sL $NODE_SRC | sudo -E bash -
|
curl -sL $NODE_SRC | sudo -E bash -
|
||||||
|
@ -56,7 +58,6 @@ install_build_prereqs() {
|
||||||
|
|
||||||
install_appimage_tool() {
|
install_appimage_tool() {
|
||||||
APP_TOOL_BIN=$HOME/bin/appimagetool
|
APP_TOOL_BIN=$HOME/bin/appimagetool
|
||||||
APP_TOOL_URL=https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
|
||||||
|
|
||||||
mkdir -p "$HOME"/bin
|
mkdir -p "$HOME"/bin
|
||||||
curl -L -o "$APP_TOOL_BIN" "$APP_TOOL_URL"
|
curl -L -o "$APP_TOOL_BIN" "$APP_TOOL_URL"
|
||||||
|
@ -105,7 +106,6 @@ setup_appdir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_python_37_appdir() {
|
setup_python_37_appdir() {
|
||||||
PYTHON_APPIMAGE_URL="https://github.com/niess/python-appimage/releases/download/python3.7/python3.7.9-cp37-cp37m-manylinux1_x86_64.AppImage"
|
|
||||||
PYTHON_APPIMAGE="python3.7.9_x86_64.AppImage"
|
PYTHON_APPIMAGE="python3.7.9_x86_64.AppImage"
|
||||||
rm -rf "$APPDIR" || true
|
rm -rf "$APPDIR" || true
|
||||||
curl -L -o "$PYTHON_APPIMAGE" "$PYTHON_APPIMAGE_URL"
|
curl -L -o "$PYTHON_APPIMAGE" "$PYTHON_APPIMAGE_URL"
|
||||||
|
|
Loading…
Reference in New Issue