diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml index c1d6254d..78d24fcb 100644 --- a/.github/workflows/build-installer.yml +++ b/.github/workflows/build-installer.yml @@ -4,7 +4,16 @@ run-name: installer-build-${{ github.sha }} on: workflow_dispatch: - + inputs: + platform: + type: choice + description: installer(s) to build + required: true + options: + - arc + - ultra + - ultra2 + - all jobs: build: runs-on: windows-latest @@ -48,22 +57,24 @@ jobs: npm run fetch-build-resources npm run pack-python npm run prebuild - npm run build:arc + npm run build:${{ inputs.platform }} - name: set release path working-directory: "release" run: | - echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)" - echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)" >> $env:GITHUB_ENV + echo "RELEASE_DIR=$((pwd).Path)" + echo "RELEASE_DIR=$((pwd).Path)" >> $env:GITHUB_ENV - - uses: actions/upload-artifact@v4 + - name: upload single release + uses: actions/upload-artifact@v4 with: # Name of the artifact to upload. # Optional. Default is 'artifact' - name: arc-installer-windows.exe + name: "Built_installers" # A file, directory or wildcard pattern that describes what to upload # Required. - path: ${{ env.INSTALLER_EXE_PATH }} + path: ${{ env.RELEASE_DIR }}\*.exe if-no-files-found: error retention-days: 1 overwrite: true + diff --git a/WebUI/package.json b/WebUI/package.json index 76b0e0c9..9272e21e 100644 --- a/WebUI/package.json +++ b/WebUI/package.json @@ -8,7 +8,7 @@ "pack-offline": "cross-env node build/scripts/pack-offline.js ./package_res", "pack-python": "cross-env node build/scripts/pack-python.js ../python_package_res ./npm_package_res", "prebuild": "cross-env node build/scripts/prebuild.js ./npm_package_res ../service ./external", - "build": "cross-env npm run prebuild && npm run build:arc && npm run build:ultra && npm run build:ultra2", + "build:all": "cross-env npm run prebuild && npm run build:arc && npm run build:ultra && npm run build:ultra2", "build:arc": "cross-env-shell PLATFORM=\"arc\" VITE_PLATFORM_TITLE=\"for Intel® Arc™\" \"vue-tsc && vite build && node ./build/scripts/render-template.js && electron-builder --config build/build-config.json --win --x64\"", "build:ultra": "cross-env-shell PLATFORM=\"ultra\" VITE_PLATFORM_TITLE=\"for Intel® Core™ Ultra\" \"vue-tsc && vite build && node ./build/scripts/render-template.js && electron-builder --config build/build-config.json --win --x64\"", "build:ultra2": "cross-env-shell PLATFORM=\"ultra2\" VITE_PLATFORM_TITLE=\"for Intel® Core™ Ultra Series 2\" \"vue-tsc && vite build && node ./build/scripts/render-template.js && electron-builder --config build/build-config.json --win --x64\"",