mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/Mapleawaa/PVE-Tools-9.git
synced 2026-09-20 08:03:35 +08:00
fix(release): 用 ssc 替代 shc,pipe 模式无 ARG_MAX 限制
This commit is contained in:
13
.github/workflows/beta-release.yml
vendored
13
.github/workflows/beta-release.yml
vendored
@@ -29,15 +29,16 @@ jobs:
|
||||
- name: Build single script from modules
|
||||
run: bash build.sh
|
||||
|
||||
- name: Install shc
|
||||
- name: Install ssc (pipe-mode script compiler)
|
||||
run: |
|
||||
sudo add-apt-repository ppa:neurobin/ppa -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y shc
|
||||
git clone --depth 1 https://github.com/liberize/ssc.git /tmp/ssc
|
||||
cd /tmp/ssc
|
||||
make
|
||||
sudo cp ssc /usr/local/bin/
|
||||
|
||||
- name: Compile script to binary (statically linked)
|
||||
- name: Compile script to binary (static + pipe mode)
|
||||
run: |
|
||||
CFLAGS="-static" shc -r -f dist/PVE-Tools.sh -o pve-tools
|
||||
ssc -s -r dist/PVE-Tools.sh pve-tools
|
||||
chmod +x pve-tools
|
||||
|
||||
- name: Create GitHub Release
|
||||
|
||||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -29,15 +29,16 @@ jobs:
|
||||
- name: Build single script from modules
|
||||
run: bash build.sh
|
||||
|
||||
- name: Install shc
|
||||
- name: Install ssc (pipe-mode script compiler)
|
||||
run: |
|
||||
sudo add-apt-repository ppa:neurobin/ppa -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y shc
|
||||
git clone --depth 1 https://github.com/liberize/ssc.git /tmp/ssc
|
||||
cd /tmp/ssc
|
||||
make
|
||||
sudo cp ssc /usr/local/bin/
|
||||
|
||||
- name: Compile script to binary (statically linked)
|
||||
- name: Compile script to binary (static + pipe mode)
|
||||
run: |
|
||||
CFLAGS="-static" shc -r -f dist/PVE-Tools.sh -o pve-tools
|
||||
ssc -s -r dist/PVE-Tools.sh pve-tools
|
||||
chmod +x pve-tools
|
||||
|
||||
- name: Generate release notes
|
||||
|
||||
Reference in New Issue
Block a user