rds_ssm_connect 1.7.10 → 1.7.11

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,53 @@ 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 pattern in "$BUNDLE"/macos/*.app.tar.gz "$BUNDLE"/appimage/*.AppImage "$BUNDLE"/nsis/*-setup.exe; do
104
+ for f in $pattern; do
105
+ if [ -f "$f" ]; then
106
+ UPDATER_FILE="$f"
107
+ break 2
108
+ fi
109
+ done
110
+ done
111
+
112
+ if [ -z "$UPDATER_FILE" ]; then
113
+ echo "WARNING: No updater artifact found"
114
+ find "$BUNDLE" -type f 2>/dev/null | head -20
115
+ exit 0
116
+ fi
117
+
118
+ echo "Signing: $UPDATER_FILE"
119
+ npx tauri signer sign "$UPDATER_FILE" --private-key "$TAURI_SIGNING_PRIVATE_KEY" --password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD"
120
+
121
+ # The signer creates a .sig file alongside the original
122
+ SIG_FILE="${UPDATER_FILE}.sig"
123
+ if [ -f "$SIG_FILE" ]; then
124
+ cp "$SIG_FILE" "sigs/${{ matrix.rust_target }}.sig"
125
+ echo "Signature saved ($(wc -c < "$SIG_FILE") bytes)"
126
+ cat "$SIG_FILE"
106
127
  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
128
+ echo "ERROR: .sig file not created at $SIG_FILE"
129
+ exit 1
111
130
  fi
112
- echo "=== sigs/ contents ==="
113
- ls -la sigs/
114
131
 
115
132
  - name: Upload signature artifact
116
133
  uses: actions/upload-artifact@v4
117
134
  with:
118
135
  name: sig-${{ matrix.rust_target }}
119
136
  path: sigs/
120
- if-no-files-found: ignore
137
+ if-no-files-found: error
121
138
 
122
139
  # Generate update manifest after all builds complete
123
140
  update-manifest:
@@ -147,14 +164,16 @@ jobs:
147
164
  - name: Generate latest.json
148
165
  run: |
149
166
  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"
167
+ ls -la sigs/
168
+ echo "=== Signature contents ==="
169
+ for f in sigs/*.sig; do echo "--- $f ---"; cat "$f"; done
152
170
  node scripts/generate-update-json.js ${{ steps.version.outputs.VERSION }} https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.VERSION }} sigs
153
171
 
154
172
  - 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
173
  env:
160
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175
+ run: |
176
+ TAG="v${{ steps.version.outputs.VERSION }}"
177
+ echo "=== latest.json content ==="
178
+ cat latest.json
179
+ 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.11' }
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.11",
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.11"
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.11",
5
5
  "identifier": "com.rds-ssm-connect.desktop",
6
6
  "build": {
7
7
  "beforeDevCommand": "npm run dev:vite",