Verified Commit d181f68b authored by azubieta's avatar azubieta
Browse files

Add post installation scripts to arch package

parent a4c68b87
Pipeline #637 passed with stage
in 5 minutes and 38 seconds
......@@ -22,7 +22,7 @@ build:arch_pkg:
script:
- mkdir build
- chmod a+rwx build
- cp dist/arch/PKGBUILD build
- cp -v dist/arch/* build
- cd build && su build -c "makepkg"
- mv plasma-appimage-integration*.pkg.tar.xz ..
artifacts:
......
......@@ -19,7 +19,7 @@ conflicts=()
replaces=()
backup=()
options=()
install=
install=plasma-appimage-integration-git.install
changelog=
source=("git+https://www.opencode.net/azubieta/plasma-appimage-integration.git")
sha256sums=('SKIP')
......
#!/usr/bin/env sh
set -e
## arg 1: the new package version
post_install() {
APPIMAGE_SERVICES_BIN_PATH=/usr/bin/appimage-services
APPIMAGE_SERVICES_URL="https://www.opencode.net/azubieta/AppImageService/-/jobs/artifacts/master/raw/appimage-services-x86_64.AppImage?job=build:AppImage"
if [ -f "$APPIMAGE_SERVICES_BIN_PATH" ]
then
echo "Using appimamge-services bin from $APPIMAGE_SERVICES_BIN_PATH"
else
echo "Installing appimage-services to $APPIMAGE_SERVICES_BIN_PATH"
wget "$APPIMAGE_SERVICES_URL" -O "$APPIMAGE_SERVICES_BIN_PATH"
chmod +x "$APPIMAGE_SERVICES_BIN_PATH"
"$APPIMAGE_SERVICES_BIN_PATH" self-install
fi
}
## arg 1: the old package version
post_remove() {
/usr/bin/appimage-services self-uninstall
rm /usr/bin/appimage-services
}
#! /bin/bash
#!/usr/bin/env sh
set -e
APPIMAGE_SERVICES_BIN_PATH=/usr/bin/appimage-services
......
#! /bin/bash
#!/usr/bin/env sh
set -e
/usr/bin/appimage-services self-uninstall
rm /usr/bin/appimage-services
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment