rds_ssm_connect 1.7.6 → 1.7.8

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.
@@ -83,6 +83,22 @@ jobs:
83
83
  prerelease: false
84
84
  args: --target ${{ matrix.rust_target }}
85
85
 
86
+ - name: Save updater signature
87
+ shell: bash
88
+ run: |
89
+ mkdir -p sigs
90
+ SIG=$(find src-tauri/target/${{ matrix.rust_target }}/release/bundle -name '*.app.tar.gz.sig' -o -name '*.AppImage.sig' -o -name '*.nsis.zip.sig' 2>/dev/null | head -1)
91
+ if [ -n "$SIG" ] && [ -f "$SIG" ]; then
92
+ cp "$SIG" "sigs/${{ matrix.rust_target }}.sig"
93
+ fi
94
+
95
+ - name: Upload signature artifact
96
+ uses: actions/upload-artifact@v4
97
+ with:
98
+ name: sig-${{ matrix.rust_target }}
99
+ path: sigs/
100
+ if-no-files-found: ignore
101
+
86
102
  # Generate update manifest after all builds complete
87
103
  update-manifest:
88
104
  needs: build
@@ -101,9 +117,17 @@ jobs:
101
117
  id: version
102
118
  run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
103
119
 
120
+ - name: Download all signature artifacts
121
+ uses: actions/download-artifact@v4
122
+ with:
123
+ path: sigs
124
+ pattern: sig-*
125
+ merge-multiple: true
126
+
104
127
  - name: Generate latest.json
105
128
  run: |
106
- node scripts/generate-update-json.js ${{ steps.version.outputs.VERSION }} https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.VERSION }}
129
+ ls -la sigs/ 2>/dev/null || echo "No signatures found"
130
+ node scripts/generate-update-json.js ${{ steps.version.outputs.VERSION }} https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.VERSION }} sigs
107
131
 
108
132
  - name: Upload latest.json to release
109
133
  uses: softprops/action-gh-release@v1
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.6' }
13
+ const packageJson = { name: 'rds_ssm_connect', version: '1.7.8' }
14
14
 
15
15
  const execAsync = promisify(exec)
16
16
 
package/latest.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "1.7.6",
3
+ "notes": "Release v1.7.6",
4
+ "pub_date": "2026-02-10T17:22:53.469Z",
5
+ "platforms": {
6
+ "darwin-aarch64": {
7
+ "url": "https://github.com/yarka-guru/connection_app/releases/download/v1.7.6/RDS.SSM.Connect_aarch64.app.tar.gz",
8
+ "signature": ""
9
+ },
10
+ "darwin-x86_64": {
11
+ "url": "https://github.com/yarka-guru/connection_app/releases/download/v1.7.6/RDS.SSM.Connect_x64.app.tar.gz",
12
+ "signature": ""
13
+ },
14
+ "linux-x86_64": {
15
+ "url": "https://github.com/yarka-guru/connection_app/releases/download/v1.7.6/RDS.SSM.Connect_1.7.6_amd64.AppImage",
16
+ "signature": ""
17
+ },
18
+ "linux-aarch64": {
19
+ "url": "https://github.com/yarka-guru/connection_app/releases/download/v1.7.6/RDS.SSM.Connect_1.7.6_aarch64.AppImage",
20
+ "signature": ""
21
+ },
22
+ "windows-x86_64": {
23
+ "url": "https://github.com/yarka-guru/connection_app/releases/download/v1.7.6/RDS.SSM.Connect_1.7.6_x64-setup.exe",
24
+ "signature": ""
25
+ }
26
+ }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rds_ssm_connect",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -6,8 +6,8 @@
6
6
  * This script generates the update manifest that needs to be uploaded
7
7
  * to GitHub releases for auto-updates to work.
8
8
  *
9
- * Usage: node scripts/generate-update-json.js <version> <release-url>
10
- * Example: node scripts/generate-update-json.js 1.7.0 https://github.com/yarka-guru/connection_app/releases/download/v1.7.0
9
+ * Usage: node scripts/generate-update-json.js <version> <release-url> [sigs-dir]
10
+ * Example: node scripts/generate-update-json.js 1.7.0 https://github.com/yarka-guru/connection_app/releases/download/v1.7.0 sigs
11
11
  */
12
12
 
13
13
  import fs from 'node:fs'
@@ -18,6 +18,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
18
18
 
19
19
  const version = process.argv[2]
20
20
  const releaseUrl = process.argv[3]
21
+ const sigsDir = process.argv[4] // Optional: directory containing .sig files downloaded from release
21
22
 
22
23
  if (!version || !releaseUrl) {
23
24
  process.exit(1)
@@ -30,7 +31,41 @@ const tauriConf = JSON.parse(
30
31
  'utf-8',
31
32
  ),
32
33
  )
33
- const productName = tauriConf.productName.replace(/\s+/g, '_')
34
+ // Tauri uses dots for spaces in bundle filenames
35
+ const productName = tauriConf.productName.replace(/\s+/g, '.')
36
+
37
+ // Rust target → Tauri updater platform mapping
38
+ const TARGET_TO_PLATFORM = {
39
+ 'aarch64-apple-darwin': 'darwin-aarch64',
40
+ 'x86_64-apple-darwin': 'darwin-x86_64',
41
+ 'x86_64-unknown-linux-gnu': 'linux-x86_64',
42
+ 'x86_64-pc-windows-msvc': 'windows-x86_64',
43
+ }
44
+
45
+ // Read signatures from CI artifacts (named by rust target: <target>.sig)
46
+ function loadSignatures() {
47
+ const sigs = {}
48
+ if (!sigsDir) return sigs
49
+
50
+ for (const [target, platform] of Object.entries(TARGET_TO_PLATFORM)) {
51
+ try {
52
+ sigs[platform] = fs
53
+ .readFileSync(path.join(sigsDir, `${target}.sig`), 'utf-8')
54
+ .trim()
55
+ } catch {
56
+ sigs[platform] = ''
57
+ }
58
+ }
59
+ return sigs
60
+ }
61
+
62
+ const signatures = loadSignatures()
63
+
64
+ const macAarch64 = `${productName}_aarch64.app.tar.gz`
65
+ const macX64 = `${productName}_x64.app.tar.gz`
66
+ const linuxAmd64 = `${productName}_${version}_amd64.AppImage`
67
+ const linuxAarch64 = `${productName}_${version}_aarch64.AppImage`
68
+ const windowsX64 = `${productName}_${version}_x64-setup.exe`
34
69
 
35
70
  const updateManifest = {
36
71
  version: version,
@@ -38,24 +73,24 @@ const updateManifest = {
38
73
  pub_date: new Date().toISOString(),
39
74
  platforms: {
40
75
  'darwin-aarch64': {
41
- url: `${releaseUrl}/${productName}_${version}_aarch64.app.tar.gz`,
42
- signature: '',
76
+ url: `${releaseUrl}/${macAarch64}`,
77
+ signature: signatures['darwin-aarch64'] || '',
43
78
  },
44
79
  'darwin-x86_64': {
45
- url: `${releaseUrl}/${productName}_${version}_x64.app.tar.gz`,
46
- signature: '',
80
+ url: `${releaseUrl}/${macX64}`,
81
+ signature: signatures['darwin-x86_64'] || '',
47
82
  },
48
83
  'linux-x86_64': {
49
- url: `${releaseUrl}/${productName}_${version}_amd64.AppImage.tar.gz`,
50
- signature: '',
84
+ url: `${releaseUrl}/${linuxAmd64}`,
85
+ signature: signatures['linux-x86_64'] || '',
51
86
  },
52
87
  'linux-aarch64': {
53
- url: `${releaseUrl}/${productName}_${version}_aarch64.AppImage.tar.gz`,
54
- signature: '',
88
+ url: `${releaseUrl}/${linuxAarch64}`,
89
+ signature: signatures['linux-aarch64'] || '',
55
90
  },
56
91
  'windows-x86_64': {
57
- url: `${releaseUrl}/${productName}_${version}_x64-setup.nsis.zip`,
58
- signature: '',
92
+ url: `${releaseUrl}/${windowsX64}`,
93
+ signature: signatures['windows-x86_64'] || '',
59
94
  },
60
95
  },
61
96
  }
@@ -3057,7 +3057,7 @@ checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
3057
3057
 
3058
3058
  [[package]]
3059
3059
  name = "rds-ssm-connect"
3060
- version = "1.7.5"
3060
+ version = "1.7.6"
3061
3061
  dependencies = [
3062
3062
  "reqwest 0.12.28",
3063
3063
  "semver",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rds-ssm-connect"
3
- version = "1.7.6"
3
+ version = "1.7.8"
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.6",
4
+ "version": "1.7.8",
5
5
  "identifier": "com.rds-ssm-connect.desktop",
6
6
  "build": {
7
7
  "beforeDevCommand": "npm run dev:vite",
@@ -47,7 +47,7 @@
47
47
  "endpoints": [
48
48
  "https://github.com/yarka-guru/connection_app/releases/latest/download/latest.json"
49
49
  ],
50
- "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDI2MTFEQjk0MjUzRTgwQTEKUldTaGdENGxsTnNSSms1dTVvcWVKWUc2aFlOYVl5ODcvbVhiekVsVWxHbVlnRERSNjJsTHZPYkMK"
50
+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEYxRjNDRkY1MkI1NTM2MzIKUldReU5sVXI5Yy96OGRNdjlHd3BqcTBkL0E4c2ZwUTRlL3VsZXVTdkNWRGxKL1A5ckNYNGdDNVoK"
51
51
  }
52
52
  }
53
53
  }