diff --git a/.gitea/workflows/auto-release.yml b/.gitea/workflows/auto-release.yml index 216a403..74b60b1 100644 --- a/.gitea/workflows/auto-release.yml +++ b/.gitea/workflows/auto-release.yml @@ -35,14 +35,7 @@ jobs: cp app/Microsoft.Web.WebView2.Core.dll app/Microsoft.Web.WebView2.WinForms.dll app/WebView2Loader.dll pkg/app/ cp app/src/dsh-app.cs app/src/app.manifest pkg/app/src/ cp dsh.ico README.md install.cmd uninstall.vbs register-uninstall.ps1 pkg/ - cd pkg && python - <<'PY' -import zipfile, os -with zipfile.ZipFile('../dsh-desktop-online.zip', '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, '.')) -PY + cd pkg && python ../scripts/build-online.py ../dsh-desktop-online.zip - name: Create release id: release diff --git a/runtime/act-runner/.runner b/runtime/act-runner/.runner new file mode 100644 index 0000000..796afa6 --- /dev/null +++ b/runtime/act-runner/.runner @@ -0,0 +1,12 @@ +{ + "WARNING": "This file is automatically generated by Gitea Runner. Do not edit it manually unless you know what you are doing. Removing this file will cause Gitea Runner to re-register as a new runner.", + "id": 1, + "uuid": "1a3f238a-69b5-4671-bafa-c91fb5a117ea", + "name": "win-workstation", + "token": "dc38b67a337ab4fc5fda04d7f8ef4c0b957e7162", + "address": "https://git.vanusys.com", + "labels": [ + "windows-latest:host" + ], + "ephemeral": false +} diff --git a/runtime/act-runner/.runner.lock b/runtime/act-runner/.runner.lock new file mode 100644 index 0000000..e69de29 diff --git a/runtime/act-runner/gitea-runner.exe b/runtime/act-runner/gitea-runner.exe new file mode 100644 index 0000000..98b6ad9 Binary files /dev/null and b/runtime/act-runner/gitea-runner.exe differ diff --git a/scripts/build-online.py b/scripts/build-online.py new file mode 100644 index 0000000..2e80150 --- /dev/null +++ b/scripts/build-online.py @@ -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')