This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ ! -f go.mod -o ! -d snap ]; then
|
||||
if [ ! -f go.mod ] || [ ! -d snap ]; then
|
||||
echo "This script should be run from the root of the gitea repository"
|
||||
exit 1
|
||||
fi
|
||||
@@ -13,7 +13,9 @@ fi
|
||||
|
||||
command -v pnpm >/dev/null 2>&1 || npm install -g pnpm
|
||||
|
||||
TAGS="bindata sqlite sqlite_unlock_notify pam cert" make build
|
||||
# build tags for 1.26: "bindata sqlite sqlite_unlock_notify pam cert"
|
||||
# for 1.27: sqlite is not needed, "cert" seems doing nothing
|
||||
TAGS="bindata pam" make build
|
||||
|
||||
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"
|
||||
cp -r options "${SNAPCRAFT_PART_INSTALL}/"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ ! -f go.mod -o ! -d snap ]; then
|
||||
if [ ! -f go.mod ] || [ ! -d snap ]; then
|
||||
echo "This script should be run from the root of the gitea repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -8,13 +8,19 @@ description: |
|
||||
|
||||
icon: public/assets/img/logo.png
|
||||
confinement: strict
|
||||
base: core22
|
||||
base: core24
|
||||
adopt-info: gitea
|
||||
|
||||
architectures:
|
||||
- build-on: armhf
|
||||
- build-on: amd64
|
||||
- build-on: arm64
|
||||
platforms:
|
||||
armhf:
|
||||
build-on: [armhf]
|
||||
build-for: [armhf]
|
||||
amd64:
|
||||
build-on: [amd64]
|
||||
build-for: [amd64]
|
||||
arm64:
|
||||
build-on: [arm64]
|
||||
build-for: [arm64]
|
||||
|
||||
environment:
|
||||
GITEA_CUSTOM: "$SNAP_COMMON"
|
||||
|
||||
Reference in New Issue
Block a user