1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00
This commit is contained in:
Thomas 2024-05-02 20:46:42 +02:00 committed by GitHub
parent a22bee65be
commit de8f7945e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,8 +50,6 @@ function build_api {
"CGO_CFLAGS=$heif_cgo_cflags"
"GOENV_VERSION=$go_version"
"CGO_ENABLED=1"
# workaround for issue https://github.com/strukturag/libheif/issues/523
"GO111MODULE=off"
)
pushd "$install_dir/sources/api" || ynh_die
@ -61,6 +59,7 @@ function build_api {
sleep 5
done
set -e
ynh_exec_as "$app" env "${gobuild_env[@]}" go mod init 2>&1
ynh_exec_as "$app" env "${gobuild_env[@]}" go install github.com/mattn/go-sqlite3 github.com/Kagami/go-face 2>&1
ynh_exec_as "$app" env "${gobuild_env[@]}" go build -o photoview . 2>&1
popd || ynh_die