build with node16 in snap (#18508)
This commit is contained in:
parent
115e4772cc
commit
70e614b9da
|
@ -45,7 +45,7 @@ parts:
|
||||||
source: .
|
source: .
|
||||||
stage-packages: [ git, sqlite3, openssh-client ]
|
stage-packages: [ git, sqlite3, openssh-client ]
|
||||||
build-packages: [ git, libpam0g-dev, libsqlite3-dev]
|
build-packages: [ git, libpam0g-dev, libsqlite3-dev]
|
||||||
build-snaps: [ go, node/14/stable ]
|
build-snaps: [ go, node/16/stable ]
|
||||||
build-environment:
|
build-environment:
|
||||||
- LDFLAGS: ""
|
- LDFLAGS: ""
|
||||||
override-pull: |
|
override-pull: |
|
||||||
|
@ -67,6 +67,7 @@ parts:
|
||||||
|
|
||||||
override-build: |
|
override-build: |
|
||||||
set -x
|
set -x
|
||||||
|
sed -i 's/os.Getuid()/1/g' modules/setting/setting.go
|
||||||
TAGS="bindata sqlite sqlite_unlock_notify pam cert" make build
|
TAGS="bindata sqlite sqlite_unlock_notify pam cert" make build
|
||||||
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"
|
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"
|
||||||
cp -r options "${SNAPCRAFT_PART_INSTALL}/"
|
cp -r options "${SNAPCRAFT_PART_INSTALL}/"
|
||||||
|
|
Loading…
Reference in a new issue