summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormzz20172021-08-07 20:33:04 +0800
committermzz20172021-08-07 20:33:04 +0800
commit51db72577b98537010a06fcb737c679e24fc70fb (patch)
tree6e077919d0e885f2bb662a1b38919131218d68b9
parentc99ff6462396be86fc0fee68a4dfe8b89523a9e5 (diff)
downloadaur-51db72577b98537010a06fcb737c679e24fc70fb.tar.gz
embed static files
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 94daeb1087b..7ba2c133c4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: mzz2017 <mzz@tuta.io>
pkgname=v2raya-git
-pkgver=20210805.r770.5f51899
+pkgver=20210807.r793.3414a0c
pkgrel=1
install=.INSTALL
pkgdesc="v2rayA nightly version"
@@ -30,6 +30,7 @@ build() {
yarn config set sass_binary_site https://cdn.npm.taobao.org/dist/node-sass -g
yarn --check-files
yarn build
+ mv "$srcdir/v2raya-git/web" "$srcdir/v2raya-git/service/server/router/"
cd "$srcdir/$pkgname/service"
export GO111MODULE=on
@@ -40,8 +41,6 @@ build() {
package() {
cd "${srcdir}"/"${pkgname}"/
install -Dm 755 service/v2raya -t "${pkgdir}"/usr/bin/
- find web -type d -exec install -vd "${pkgdir}"/etc/v2raya/{} \;
- find web -type f -exec install -vm 644 {} "${pkgdir}"/etc/v2raya/{} \;
install -dm 750 "${pkgdir}"/etc/v2raya/
install -Dm 644 install/universal/v2raya.desktop -t "${pkgdir}"/usr/share/applications/
install -Dm 644 install/universal/v2raya.service -t "${pkgdir}"/usr/lib/systemd/system/