Add rust dep for ppa

This commit is contained in:
Kevin Yue
2024-02-25 13:33:53 +08:00
parent 5bca84c9cf
commit 3daad748ae
2 changed files with 8 additions and 4 deletions

View File

@@ -53,8 +53,8 @@ build-fe:
fi
build-rs: extract-vendor
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpclient -p gpauth -p gpservice
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpgui-helper --features "tauri/custom-protocol"
$(CARGO) build $(CARGO_BUILD_ARGS) -p gpauth
# $(CARGO) build $(CARGO_BUILD_ARGS) -p gpgui-helper --features "tauri/custom-protocol"
clean:
$(CARGO) clean
@@ -98,17 +98,21 @@ init-debian:
debmake
cp -f packaging/deb/control debian/control
cp -f packaging/deb/control.in debian/control
cp -f packaging/deb/rules debian/rules
rm -f debian/changelog
deb: init-debian
sed -i "s/@RUST@//g" debian/control
dch --create --distribution unstable --package $(PKG_NAME) --newversion $(VERSION)-$(REVISION) "Bugfix and improvements."
debuild --preserve-env -e PATH -us -uc -b
# Usage: make ppa SERIES=focal
ppa: init-debian
sed -i "s/@RUST@/rust-all(>=1.70)/g" debian/control
$(eval SERIES_VER = $(shell distro-info --series $(SERIES) -r | cut -d' ' -f1))
@echo "Building for $(SERIES) $(SERIES_VER)"