rds_ssm_connect 1.7.10 → 1.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,6 @@ jobs:
74
74
  rm src-tauri/binaries/gui-adapter-bundle.cjs
75
75
 
76
76
  - name: Build Tauri app
77
- id: tauri
78
77
  uses: tauri-apps/tauri-action@v0
79
78
  env:
80
79
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -89,35 +88,51 @@ jobs:
89
88
  includeUpdaterJson: false
90
89
  args: --target ${{ matrix.rust_target }}
91
90
 
92
- - name: Save updater signature
91
+ - name: Sign updater artifact and save signature
93
92
  shell: bash
94
93
  env:
95
- ARTIFACT_PATHS: ${{ steps.tauri.outputs.artifactPaths }}
94
+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
95
+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
96
96
  run: |
97
97
  mkdir -p sigs
98
- echo "=== All artifact paths ==="
99
- echo "$ARTIFACT_PATHS" | jq '.' 2>/dev/null || echo "$ARTIFACT_PATHS"
100
- echo "=== Looking for .sig files ==="
101
- SIG_PATH=$(echo "$ARTIFACT_PATHS" | jq -r '.[] | select(endswith(".sig"))' 2>/dev/null | head -1)
102
- echo "Sig path from artifacts: ${SIG_PATH:-none}"
103
- if [ -n "$SIG_PATH" ] && [ -f "$SIG_PATH" ]; then
104
- cp "$SIG_PATH" "sigs/${{ matrix.rust_target }}.sig"
105
- echo "Saved signature ($(wc -c < "sigs/${{ matrix.rust_target }}.sig") bytes)"
98
+ BUNDLE="src-tauri/target/${{ matrix.rust_target }}/release/bundle"
99
+
100
+ # Find the updater artifact — must match what generate-update-json.js URLs point to:
101
+ # macOS: .app.tar.gz, Linux: .AppImage, Windows: -setup.exe
102
+ UPDATER_FILE=""
103
+ for f in "$BUNDLE"/macos/*.app.tar.gz "$BUNDLE"/appimage/*.AppImage "$BUNDLE"/nsis/*-setup.exe; do
104
+ if [ -f "$f" ]; then
105
+ UPDATER_FILE="$f"
106
+ break
107
+ fi
108
+ done
109
+
110
+ if [ -z "$UPDATER_FILE" ]; then
111
+ echo "WARNING: No updater artifact found"
112
+ find "$BUNDLE" -type f 2>/dev/null | head -20
113
+ exit 0
114
+ fi
115
+
116
+ echo "Signing: $UPDATER_FILE"
117
+ npx tauri signer sign "$UPDATER_FILE" --private-key "$TAURI_SIGNING_PRIVATE_KEY" --password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD"
118
+
119
+ # The signer creates a .sig file alongside the original
120
+ SIG_FILE="${UPDATER_FILE}.sig"
121
+ if [ -f "$SIG_FILE" ]; then
122
+ cp "$SIG_FILE" "sigs/${{ matrix.rust_target }}.sig"
123
+ echo "Signature saved ($(wc -c < "$SIG_FILE") bytes)"
124
+ cat "$SIG_FILE"
106
125
  else
107
- echo "=== Sig not found via artifactPaths, searching filesystem ==="
108
- find "src-tauri/target/${{ matrix.rust_target }}/release/bundle" -name '*.sig' -type f 2>/dev/null || echo "No .sig files found"
109
- echo "=== All bundle files ==="
110
- find "src-tauri/target/${{ matrix.rust_target }}/release/bundle" -type f 2>/dev/null | head -30
126
+ echo "ERROR: .sig file not created at $SIG_FILE"
127
+ exit 1
111
128
  fi
112
- echo "=== sigs/ contents ==="
113
- ls -la sigs/
114
129
 
115
130
  - name: Upload signature artifact
116
131
  uses: actions/upload-artifact@v4
117
132
  with:
118
133
  name: sig-${{ matrix.rust_target }}
119
134
  path: sigs/
120
- if-no-files-found: ignore
135
+ if-no-files-found: error
121
136
 
122
137
  # Generate update manifest after all builds complete
123
138
  update-manifest:
@@ -147,14 +162,16 @@ jobs:
147
162
  - name: Generate latest.json
148
163
  run: |
149
164
  echo "=== Downloaded signatures ==="
150
- ls -la sigs/ 2>/dev/null || echo "No signatures found"
151
- cat sigs/*.sig 2>/dev/null || echo "No .sig file contents"
165
+ ls -la sigs/
166
+ echo "=== Signature contents ==="
167
+ for f in sigs/*.sig; do echo "--- $f ---"; cat "$f"; done
152
168
  node scripts/generate-update-json.js ${{ steps.version.outputs.VERSION }} https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.VERSION }} sigs
153
169
 
154
170
  - name: Upload latest.json to release
155
- uses: softprops/action-gh-release@v1
156
- with:
157
- files: latest.json
158
- tag_name: v${{ steps.version.outputs.VERSION }}
159
171
  env:
160
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173
+ run: |
174
+ TAG="v${{ steps.version.outputs.VERSION }}"
175
+ echo "=== latest.json content ==="
176
+ cat latest.json
177
+ gh release upload "$TAG" latest.json --clobber
package/connect.js CHANGED
@@ -10,7 +10,7 @@ import { promisify } from 'node:util'
10
10
  import { PROJECT_CONFIGS } from './envPortMapping.js'
11
11
 
12
12
  // Package info for version checking
13
- const packageJson = { name: 'rds_ssm_connect', version: '1.7.10' }
13
+ const packageJson = { name: 'rds_ssm_connect', version: '1.7.12' }
14
14
 
15
15
  const execAsync = promisify(exec)
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rds_ssm_connect",
3
- "version": "1.7.10",
3
+ "version": "1.7.12",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rds-ssm-connect"
3
- version = "1.7.10"
3
+ version = "1.7.12"
4
4
  description = "Secure RDS connections through AWS SSM"
5
5
  authors = ["Iaroslav Pyrogov"]
6
6
  edition = "2024"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://schema.tauri.app/config/2",
3
3
  "productName": "RDS SSM Connect",
4
- "version": "1.7.10",
4
+ "version": "1.7.12",
5
5
  "identifier": "com.rds-ssm-connect.desktop",
6
6
  "build": {
7
7
  "beforeDevCommand": "npm run dev:vite",