tauri-action icon indicating copy to clipboard operation
tauri-action copied to clipboard

[Feature Request] Add option to generate `SHASUMS256.txt` file in `tauri-action`.

Open kjxbyz opened this issue 1 year ago • 3 comments

Generate SHASUMS256.txt file based on build assets, refer to https://nodejs.org/dist/v20.15.0/SHASUMS256.txt

kjxbyz avatar Jul 03 '24 13:07 kjxbyz

This feature is useful to me. But seems that no one take this issue for a long time, can I try to resolve it if okay?

fu050409 avatar Nov 21 '24 15:11 fu050409

yes, sure. Contributions are very welcome!

FabianLars avatar Nov 21 '24 16:11 FabianLars

You can use third-party tools to generate this file.

name: Release
on:
  workflow_dispatch:

permissions: read-all

jobs:
  gen_shasum:
    name: Gen Shasum
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Install ts-shasum
        run: npm install -g ts-shasum

      - name: Download assets
        uses: robinraju/release-downloader@v1
        with:
          tag: 
          fileName: '*'
          tarBall: false
          zipBall: false
          out-file-path: 'downloads'
      
      - name: Gen SHASUMS256.txt
        run: shasum create "$GITHUB_WORKSPACE/SHASUMS256.txt" *
        working-directory: ${{ github.workspace }}/downloads

      - name: Upload assets
        run: gh release upload "$TAG_NAME" ./SHASUMS256.txt
        env:
          TAG_NAME: 
          GH_TOKEN: 

kjxbyz avatar Nov 22 '24 11:11 kjxbyz

Now GitHub has automatically generated sha256 for assets, so this feature is no longer necessary to add.

kjxbyz avatar Jul 22 '25 11:07 kjxbyz