Skip to content

Commit d197105

Browse files
1 parent b7b425d commit d197105

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/builder.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
uses: wabarc/.github/.github/workflows/reusable-builder-snap.yml@main
158158
with:
159159
product: wayback
160-
channel: edge
160+
channel: stable
161161
publish: ${{ github.repository == 'wabarc/wayback' && github.event_name == 'push' }}
162162
egress-policy: audit
163163
secrets:

snapcraft.yaml

+16-5
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,34 @@ description: |
1212
A toolkit for snapshot webpage to the Wayback Machine.
1313
Website https://github.com/wabarc/wayback
1414
15-
base: core18
15+
base: core20
1616
grade: stable
1717
confinement: strict
1818
compression: lzo
19+
1920
architectures:
20-
#- build-on: [i386, amd64, arm64, armhf, ppc64el, s390x]
21-
- build-on: amd64
21+
- amd64
22+
- arm64
23+
- armhf
24+
- i386
2225

2326
parts:
2427
wayback:
2528
plugin: go
2629
source: https://github.com/wabarc/wayback.git
27-
go-importpath: github.com/wabarc/wayback/cmd/wayback
30+
override-build: |
31+
make build
32+
install $SNAPCRAFT_PART_BUILD/build/binary/wayback -D $SNAPCRAFT_PART_INSTALL/bin/wayback
33+
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
34+
if [ ! -e $SNAPCRAFT_PART_INSTALL/bin/wayback ]; then
35+
ln -s $SNAPCRAFT_PART_INSTALL/bin/wayback $SNAPCRAFT_PART_INSTALL/bin/wayback
36+
fi
37+
build-packages:
38+
- build-essential
2839

2940
apps:
3041
wayback:
31-
command: wayback
42+
command: bin/wayback
3243
plugs:
3344
- home
3445
- network

0 commit comments

Comments
 (0)