ci: 修复 workflow YAML(heredoc 改为脚本调用)+ 新增打包脚本
auto-release / build (push) Failing after 10m31s

This commit is contained in:
Reasonix committed 2026-08-14 16:43:19 +08:00
1 parent 5f95a8d47d
commit c5fe84ae3f
5 files changed
+25 -8

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
"""Build dsh-desktop-online.zip from the current working directory."""
import zipfile, os, sys
out = sys.argv[1] if len(sys.argv) > 1 else '../dsh-desktop-online.zip'
count = 0
with zipfile.ZipFile(out, 'w', zipfile.ZIP_DEFLATED) as z:
for r, _, fs in os.walk('.'):
for f in fs:
p = os.path.join(r, f)
z.write(p, os.path.relpath(p, '.'))
count += 1
print('ZIP:', out, '%.1f MB' % (os.path.getsize(out) / 1048576), count, 'files')