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.
- package/.github/workflows/release.yml +42 -25
- package/connect.js +1 -1
- package/package.json +1 -1
- package/src-tauri/Cargo.toml +1 -1
- package/src-tauri/tauri.conf.json +1 -1
|
@@ -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:
|
|
91
|
+
- name: Sign updater artifact and save signature
|
|
93
92
|
shell: bash
|
|
94
93
|
env:
|
|
95
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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 "
|
|
108
|
-
|
|
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:
|
|
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/
|
|
151
|
-
|
|
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
|
-
|
|
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.
|
|
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
package/src-tauri/Cargo.toml
CHANGED