Fix build and packaging
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Tyler 2020-06-14 04:34:50 -04:00
parent b79d1de9bc
commit 27fafa8b80
2 changed files with 6 additions and 6 deletions

View File

@ -6,25 +6,25 @@ steps:
image: golang:latest
group: build
commands:
- mkdir -p build/i386
- mkdir -p /build/i386
- GOOS=linux GOARCH=386 go build -o /build/i386/deb-simple
- name: build-amd64
image: golang:latest
group: build
commands:
- mkdir -p build/amd64
- go build -o build/amd64/deb-simple
- mkdir -p /build/amd64
- go build -o /build/amd64/deb-simple
- name: build-armv7
image: golang:latest
group: build
commands:
- mkdir -p build/armv7
- mkdir -p /build/armv7
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/deb-simple
- name: build-arm64
image: golang:latest
group: build
commands:
- mkdir -p build/arm64
- mkdir -p /build/arm64
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/deb-simple
- name: package
image: tystuyfzand/fpm

View File

@ -6,6 +6,6 @@ fpm -s dir -t deb -p /build/$ARCH/deb-simple_$VERSION_$ARCH.deb \
--description "Dead Simple Package Manager" \
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \
--before-install packaging/scripts/preinst.deb \
-a $ARCH build/$ARCH/deb-simple=/usr/bin/deb-simple \
-a $ARCH /build/$ARCH/deb-simple=/usr/bin/deb-simple \
packaging/deb-simple.service=/lib/systemd/system/deb-simple.service \
sample_conf.ini=/etc/deb-simple.conf