A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.
Rust
ci: add auto-versioning from git tags and automatic draft release creation
Vishnu Srivatsava8d5293925816
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 6610310..20e9be2 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -3,6 +3,7 @@ name: Build SocketSweepon:push:branches: [main]+ tags: ['v*']pull_request:branches: [main]@@ -140,6 +141,26 @@ jobs:$conf | ConvertTo-Json -Depth 10 | Set-Content src-tauri/tauri.conf.jsonWrite-Host "✓ tauri.conf.json patched for Windows"+ - name: Update version from Git tag+ if: startsWith(github.ref, 'refs/tags/v')+ shell: node {0}+ run: |+ const fs = require('fs');+ const tag = process.env.GITHUB_REF_NAME;+ const version = tag.startsWith('v') ? tag.slice(1) : tag;++ // Update package.json+ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));+ pkg.version = version;+ fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');++ // Update tauri.conf.json+ const tauri = JSON.parse(fs.readFileSync('src-tauri/tauri.conf.json', 'utf8'));+ tauri.version = version;+ fs.writeFileSync('src-tauri/tauri.conf.json', JSON.stringify(tauri, null, 2) + '\n');++ console.log(`Successfully bumped version to ${version} inside CI environment`);+# ── Build Tauri desktop app ───────────────────────────────────────────# This single command builds the React frontend (beforeBuildCommand),# compiles the Rust bridge, and packages everything into native@@ -172,3 +193,32 @@ jobs:path: |src-tauri/target/release/bundle/msi/*.msisrc-tauri/target/release/bundle/nsis/*.exe++ # ── Create GitHub Release (only on tag push) ─────────────────────────────+ release:+ if: startsWith(github.ref, 'refs/tags/v')+ needs: build+ runs-on: ubuntu-latest+ permissions:+ contents: write++ steps:+ - name: Download all artifacts+ uses: actions/download-artifact@v4+ with:+ path: artifacts++ - name: Display downloaded files+ run: find artifacts -type f | head -50++ - name: Create GitHub Release+ uses: softprops/action-gh-release@v2+ with:+ tag_name: ${{ github.ref_name }}+ name: ${{ github.ref_name }}+ draft: true+ generate_release_notes: false+ files: |+ artifacts/SocketSweep-Windows/**/*+ artifacts/SocketSweep-Linux/**/*+ artifacts/SocketSweep-macOS/**/*