diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2cff53ad1..e683d9db9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -39,10 +39,10 @@ archives: wrap_in_directory: true files: - 1pctl - - 1panel.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 501d63f0a..58e9534ce 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -9,22 +9,28 @@ if [ ! -f "1pctl" ]; then wget https://github.com/1Panel-dev/installer/raw/main/1pctl fi -if [ ! -f "1panel.service" ]; then - wget https://github.com/1Panel-dev/installer/raw/main/1panel.service -fi - if [ ! -f "install.sh" ]; then wget https://github.com/1Panel-dev/installer/raw/main/install.sh fi -if [ ! -f "GeoIP.mmdb" ]; then - wget https://resource.1panel.pro/geo/GeoIP.mmdb +if [ ! -d "initscript" ]; then + mkdir -p initscript && cd initscript + for file in 1panel.service 1paneld.init 1paneld.openrc 1paneld.procd; do + wget -q https://github.com/1Panel-dev/installer/raw/main/initscript/$file + done + cd .. fi -if [ ! -f "lang.tar.gz" ]; then - wget https://resource.1panel.pro/language/lang.tar.gz - tar zxvf lang.tar.gz - rm -rf lang.tar.gz +if [ ! -d "lang" ]; then + mkdir -p lang && cd lang + for lang in en fa pt-BR ru zh; do + wget -q https://github.com/1Panel-dev/installer/raw/main/lang/$lang.sh + done + cd .. +fi + +if [ ! -f "GeoIP.mmdb" ]; then + wget https://resource.fit2cloud.com/1panel/package/geo/GeoIP.mmdb fi chmod 755 1pctl install.sh