Skip to content

Commit a426d29

Browse files
flclash: optimize the reference of git submodule
1 parent 7e52345 commit a426d29

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

archlinuxcn/flclash/PKGBUILD

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ source=(
4747
"${pkgname}"::"git+https://github.com/chen08209/FlClash.git#tag=v$pkgver"
4848
"0001-fix-build-error.patch"
4949
"com.follow.clash.desktop"
50-
"Clash.Meta::git+https://github.com/chen08209/Clash.Meta.git#branch=FlClash"
51-
"flutter_distributor::git+https://github.com/chen08209/flutter_distributor.git#branch=FlClash"
52-
"tray_manager::git+https://github.com/chen08209/tray_manager.git#branch=main"
53-
50+
"Clash.Meta::git+https://github.com/chen08209/Clash.Meta.git"
51+
"flutter_distributor::git+https://github.com/chen08209/flutter_distributor.git"
52+
"tray_manager::git+https://github.com/chen08209/tray_manager.git"
5453
)
5554
sha256sums=('aaf8c535929ecc642637334799f8396301fbc39a3ea25b2c9a8afdabf4a7e34d'
5655
'b551c46a1577758c13bdd07868d41e4de817c6184114e1b10d39e04ae572a76a'
@@ -63,9 +62,9 @@ prepare() {
6362
cd "$srcdir/$pkgname"
6463

6564
git submodule init
66-
git submodule set-url core/Clash.Meta "$srcdir/Clash.Meta"
67-
git submodule set-url plugins/flutter_distributor "$srcdir/flutter_distributor"
68-
git submodule set-url plugins/tray_manager "$srcdir/tray_manager"
65+
git config submodule.core.Clash.Meta.url "$srcdir/Clash.Meta"
66+
git config submodule.plugins.flutter_distributor.url "$srcdir/flutter_distributor"
67+
git config submodule.plugins.tray_manager.url "$srcdir/tray_manager"
6968
git -c protocol.file.allow=always submodule update
7069

7170
patch -p1 -i "${srcdir}/0001-fix-build-error.patch"

0 commit comments

Comments
 (0)