From cb30744a40cfd3c817c681035a108a8c201ee5f4 Mon Sep 17 00:00:00 2001 From: tranch Date: Tue, 3 Feb 2026 11:51:06 +0800 Subject: feat: add plugin installer and mock server Add decky_plugin_installer.py and a Decky mock server for validation, plus related workflow/test updates. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/release-on-tag.yml | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fe82b38 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Run tests + run: bash test.sh diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml index f91b30f..76f06b6 100644 --- a/.github/workflows/release-on-tag.yml +++ b/.github/workflows/release-on-tag.yml @@ -14,6 +14,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Generate installer script + env: + MIRROR_HOST: ${{ vars.MIRROR_HOST }} + PLUGIN_MIRROR_HOST: ${{ vars.PLUGIN_MIRROR_HOST }} + PLUGIN_ID: ${{ vars.PLUGIN_ID }} + run: | + sed -i "s|__DECKY_MIRROR_HOST__|$MIRROR_HOST|g" user_install_script.sh + sed -i "s|__DECKY_PLUGIN_MIRROR_HOST__|${PLUGIN_MIRROR_HOST}|g" user_install_script.sh + sed -i "s|__DECKY_PLUGIN_ID__|${PLUGIN_ID}|g" user_install_script.sh + - name: Create GitHub release uses: softprops/action-gh-release@v2 with: -- cgit v1.2.3