mirror of
				https://github.com/yuezk/GlobalProtect-openconnect.git
				synced 2025-05-20 07:26:58 -04:00 
			
		
		
		
	Make tarball
This commit is contained in:
		
							
								
								
									
										11
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,3 +1,6 @@ | ||||
| VERSION=$(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version') | ||||
| PKG_NAME=globalprotect-openconnect-$(VERSION) | ||||
|  | ||||
| build: build-fe build-rs gpgui-helper | ||||
|  | ||||
| build-fe: | ||||
| @@ -9,6 +12,14 @@ build-rs: | ||||
| gpgui-helper: | ||||
| 	cargo build --release --frozen -p gpgui-helper --features "tauri/custom-protocol" | ||||
|  | ||||
| tarball: build-fe | ||||
| 	rm -rf apps/gpgui-helper/node_modules | ||||
|  | ||||
| 	mkdir -p .cargo | ||||
| 	cargo vendor > .cargo/config.toml | ||||
|  | ||||
| 	tar --transform 's,^,${PKG_NAME}/,' -cJf ../${PKG_NAME}.tar.xz * .cargo | ||||
|  | ||||
| install: | ||||
| 	install -Dm755 target/release/gpclient $(DESTDIR)/usr/bin/gpclient | ||||
| 	install -Dm755 target/release/gpauth $(DESTDIR)/usr/bin/gpauth | ||||
|   | ||||
		Reference in New Issue
	
	Block a user