Update packaging script/architectures
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Tyler 2021-12-20 20:17:01 -05:00
parent 8b3afee7e7
commit 58337d8976
2 changed files with 15 additions and 7 deletions

View File

@ -21,7 +21,7 @@ steps:
- chmod +x scripts/build-package.sh
- ARCH=386 scripts/build-package.sh
- ARCH=amd64 scripts/build-package.sh
- ARCH=armv7 scripts/build-package.sh
- ARCH=arm scripts/build-package.sh
- ARCH=arm64 scripts/build-package.sh
volumes:
- name: build

View File

@ -1,13 +1,21 @@
PACKAGE_ARCH="$ARCH"
if [ "$PACKAGE_ARCH" = "arm" ]; then
PACKAGE_ARCH="armhf"
elif [ "$PACKAGE_ARCH" = "386" ]; then
PACKAGE_ARCH="i386"
fi
fpm -s dir -t deb -p /build/gogrok_${DRONE_TAG}_${ARCH}.deb \
-n gogrok -v $DRONE_SEMVER -a $ARCH \
-n gogrok -v "$DRONE_SEMVER" -a "$PACKAGE_ARCH" \
--deb-priority optional --force \
--deb-compression gz --verbose \
--description "Gogrok: Open-source ngrok alternative" \
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Paste.ee" \
-a $ARCH /build/gogrok_linux_${ARCH}=/usr/bin/gogrok
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \
/build/gogrok_linux_${ARCH}=/usr/bin/gogrok
fpm -s dir -t rpm -p /build/gogrok_${DRONE_TAG}_${ARCH}.rpm \
-n gogrok -v $DRONE_SEMVER -a $ARCH \
-n gogrok -v $DRONE_SEMVER -a "$PACKAGE_ARCH" \
--description "Gogrok: Open-source ngrok alternative" \
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Paste.ee" \
-a $ARCH /build/gogrok_linux_${ARCH}=/usr/bin/gogrok
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \
/build/gogrok_linux_${ARCH}=/usr/bin/gogrok