diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1674fee..2ff84a7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} with: distribution: goreleaser - args: release --clean --snapshot + args: release --clean - name: Upload artifact uses: actions/upload-artifact@v4 with: @@ -46,11 +46,11 @@ jobs: - name: Download artifact uses: actions/download-artifact@v4 with: - name: dist/yutu_{{ matrix.path }} + merge-multiple: true - name: Attest uses: actions/attest-build-provenance@v1 with: - subject-path: '${{ github.workspace }}/dist/yutu_${{ matrix.path }}' + subject-path: '${{ github.workspace }}/yutu_${{ matrix.path }}' winget: needs: [goreleaser] diff --git a/.gitignore b/.gitignore index 7988096..41412ac 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ qodana.yaml go.work dist/ + +# except for the following files +!winres/* diff --git a/winres/winres.json b/winres/winres.json new file mode 100644 index 0000000..9662b2f --- /dev/null +++ b/winres/winres.json @@ -0,0 +1,58 @@ +{ + "RT_GROUP_ICON": { + "OTHER": { + "0000": "yutu.png" + } + }, + "RT_MANIFEST": { + "#1": { + "0409": { + "identity": { + "name": "", + "version": "" + }, + "description": "yutu is a fully functional CLI for YouTube", + "minimum-os": "win10", + "execution-level": "", + "ui-access": false, + "auto-elevate": false, + "dpi-awareness": "per monitor v2", + "disable-theming": false, + "disable-window-filtering": false, + "high-resolution-scrolling-aware": false, + "ultra-high-resolution-scrolling-aware": false, + "long-path-aware": false, + "printer-driver-isolation": false, + "gdi-scaling": false, + "segment-heap": false, + "use-common-controls-v6": false + } + } + }, + "RT_VERSION": { + "#1": { + "0000": { + "fixed": { + "file_version": "0.0.0.0", + "product_version": "0.0.0.0" + }, + "info": { + "0409": { + "Comments": "yutu", + "CompanyName": "eat-pray-ai", + "FileDescription": "yutu is a fully functional CLI for YouTube", + "FileVersion": "", + "InternalName": "yutu", + "LegalCopyright": "Copyright (c) [eat-pray-ai & Chaoqun]", + "LegalTrademarks": "", + "OriginalFilename": "yutu", + "PrivateBuild": "", + "ProductName": "yutu🐰", + "ProductVersion": "", + "SpecialBuild": "" + } + } + } + } + } +}