From 9242bf648242de0d5f79fe2a7d9aefc07f8e6978 Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Thu, 30 Oct 2025 14:50:33 +0800 Subject: [PATCH] feat: service handling on more platforms --- .goreleaser.yaml | 5 +++-- ci/script.sh | 14 ++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d0842cf6a..250dbd02f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -70,11 +70,12 @@ archives: wrap_in_directory: true files: - 1pctl + - install.sh - 1panel-core.service - 1panel-agent.service - - install.sh - - GeoIP.mmdb + - initscript/* - lang/* + - GeoIP.mmdb checksum: name_template: 'checksums.txt' diff --git a/ci/script.sh b/ci/script.sh index 201e63a36..7c5a87bfd 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -16,12 +16,14 @@ download_resources() { wget https://github.com/1Panel-dev/installer/raw/v2/install.sh fi - if [ ! -f "1panel-core.service" ]; then - wget https://github.com/1Panel-dev/installer/raw/v2/1panel-core.service - fi - - if [ ! -f "1panel-agent.service" ]; then - wget https://github.com/1Panel-dev/installer/raw/v2/1panel-agent.service + if [ ! -d "initscript" ]; then + wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-core.service + wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-agent.service + mkdir -p initscript && cd initscript + for file in 1panel-core.init 1panel-agent.init 1panel-core.openrc 1panel-agent.openrc 1panel-core.procd 1panel-agent.procd 1panel-core.service 1panel-agent.service; do + wget -q https://github.com/1Panel-dev/installer/raw/v2/initscript/$file + done + cd .. fi if [ ! -d "lang" ]; then