Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kjxbyz opened this issue Jul 3, 2024 · 3 comments
Labels
good first issue Good for newcomers type: feature request New feature or request

Comments

@kjxbyz
Copy link

kjxbyz commented Jul 3, 2024

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

@FabianLars FabianLars added type: feature request New feature or request good first issue Good for newcomers labels Jul 3, 2024
@fu050409
Copy link

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?

@FabianLars
Copy link
Member

yes, sure. Contributions are very welcome!

@kjxbyz
Copy link
Author

kjxbyz commented Nov 22, 2024

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: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants