mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-09 13:51:46 +08:00
优化构建和打包
This commit is contained in:
45
packaging/nfpm.apk.yaml
Normal file
45
packaging/nfpm.apk.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: hubproxy
|
||||
arch: ${NFPM_ARCH}
|
||||
platform: linux
|
||||
version: ${NFPM_VERSION}
|
||||
release: "1"
|
||||
section: net
|
||||
priority: optional
|
||||
maintainer: sky22333
|
||||
description: Docker and GitHub acceleration proxy server
|
||||
vendor: sky22333
|
||||
homepage: https://github.com/sky22333/hubproxy
|
||||
license: MIT
|
||||
depends:
|
||||
- logrotate
|
||||
|
||||
contents:
|
||||
- src: ./build/hubproxy/hubproxy-linux-${HUBPROXY_ARCH}
|
||||
dst: /usr/bin/hubproxy
|
||||
file_info:
|
||||
mode: 0755
|
||||
|
||||
- src: ./src/config.toml
|
||||
dst: /etc/hubproxy/config.toml
|
||||
type: config|noreplace
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
- src: ./packaging/hubproxy.openrc
|
||||
dst: /etc/init.d/hubproxy
|
||||
file_info:
|
||||
mode: 0755
|
||||
|
||||
- src: ./packaging/hubproxy.logrotate
|
||||
dst: /etc/logrotate.d/hubproxy
|
||||
file_info:
|
||||
mode: 0644
|
||||
|
||||
scripts:
|
||||
postinstall: ./packaging/postinstall.sh
|
||||
preremove: ./packaging/preremove.sh
|
||||
postremove: ./packaging/postremove.sh
|
||||
|
||||
apk:
|
||||
scripts:
|
||||
postupgrade: ./packaging/postinstall.sh
|
||||
Reference in New Issue
Block a user