diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index de924672..e4c1181e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -6,12 +6,14 @@ on: - v* env: - APP_NAME: CLIProxyAPI - DOCKERHUB_REPO: eceasy/cli-proxy-api-plus + APP_NAME: ProxyPilot + DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO || 'proxypilot/proxypilot' }} jobs: docker: runs-on: ubuntu-latest + # Only run if DockerHub credentials are available + if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }} steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c68f4687..64e10481 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,17 @@ jobs: Copy-Item -Path installer-ui/dist/* -Destination cmd/installer/ui/ -Recurse -Force shell: pwsh + - name: Create bundle for installer + run: | + # Create bundle directory + New-Item -ItemType Directory -Force -Path cmd/installer/bundle | Out-Null + # Copy files for embedding + Copy-Item -Path dist/ProxyPilot.exe -Destination cmd/installer/bundle/ + Copy-Item -Path config.example.yaml -Destination cmd/installer/bundle/ + Copy-Item -Path static/icon.ico -Destination cmd/installer/bundle/ + Copy-Item -Path static/icon.png -Destination cmd/installer/bundle/ + shell: pwsh + - name: Build Custom Installer run: | go build -ldflags="-s -w -H=windowsgui" -o dist/ProxyPilot-Installer.exe ./cmd/installer