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.
- package/.github/workflows/release.yml +44 -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,53 @@ 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 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 "
|
|
108
|
-
|
|
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:
|
|
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/
|
|
151
|
-
|
|
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
|
-
|
|
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.
|
|
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
package/src-tauri/Cargo.toml
CHANGED