Skip to content

Commit b05ce14

Browse files
committed
Rename binary to fipspad across build, packaging, and release workflows
1 parent 89bb12c commit b05ce14

7 files changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
uses: actions/upload-artifact@v4
122122
with:
123123
name: macos-x86_64-binary
124-
path: target/x86_64-apple-darwin/release/fips-pad
124+
path: target/x86_64-apple-darwin/release/fipspad
125125

126126
# ── macOS arm64 build (native on Apple Silicon runner) ──────────
127127
build-macos-arm64:
@@ -144,7 +144,7 @@ jobs:
144144
uses: actions/upload-artifact@v4
145145
with:
146146
name: macos-arm64-binary
147-
path: target/release/fips-pad
147+
path: target/release/fipspad
148148

149149
# ── macOS universal binary packaging ────────────────────────────
150150
package-macos:
@@ -175,9 +175,9 @@ jobs:
175175

176176
- name: Create universal binary
177177
run: |
178-
chmod +x binaries/x86_64/fips-pad binaries/arm64/fips-pad
179-
lipo -create binaries/x86_64/fips-pad binaries/arm64/fips-pad -output fips-pad-universal
180-
lipo -info fips-pad-universal
178+
chmod +x binaries/x86_64/fipspad binaries/arm64/fipspad
179+
lipo -create binaries/x86_64/fipspad binaries/arm64/fipspad -output fipspad-universal
180+
lipo -info fipspad-universal
181181
182182
- name: Import codesigning certificate
183183
if: env.MACOS_CODESIGN_CERT_P12_B64 != ''
@@ -215,7 +215,7 @@ jobs:
215215
NOTARY_API_KEY_P8_B64: ${{ secrets.MACOS_NOTARY_API_KEY_P8_B64 }}
216216
run: |
217217
set -euo pipefail
218-
BINARY="fips-pad-universal"
218+
BINARY="fipspad-universal"
219219
DIST="dist"
220220
mkdir -p "$DIST"
221221
@@ -240,12 +240,12 @@ jobs:
240240
--options runtime --sign "$IDENTITY" "$BINARY"
241241
242242
# Package standalone CLI binary for direct download.
243-
ditto -c -k --sequesterRsrc --keepParent "$BINARY" "$DIST/fips-pad-macos-universal.zip"
243+
ditto -c -k --sequesterRsrc --keepParent "$BINARY" "$DIST/fipspad-macos-universal.zip"
244244
245245
# Create .app bundle
246246
APP_DIR="$DIST/FIPSPad.app/Contents"
247247
mkdir -p "$APP_DIR/MacOS" "$APP_DIR/Resources"
248-
cp "$BINARY" "$APP_DIR/MacOS/fips-pad"
248+
cp "$BINARY" "$APP_DIR/MacOS/fipspad"
249249
250250
if [ -f "assets/FIPSPad.icns" ]; then
251251
cp "assets/FIPSPad.icns" "$APP_DIR/Resources/"
@@ -257,7 +257,7 @@ jobs:
257257
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
258258
<plist version="1.0">
259259
<dict>
260-
<key>CFBundleExecutable</key><string>fips-pad</string>
260+
<key>CFBundleExecutable</key><string>fipspad</string>
261261
<key>CFBundleIdentifier</key><string>${MACOS_BUNDLE_ID}</string>
262262
<key>CFBundleName</key><string>FIPSPad</string>
263263
<key>CFBundlePackageType</key><string>APPL</string>
@@ -272,16 +272,16 @@ jobs:
272272
273273
# Codesign
274274
codesign --force --timestamp --identifier "$MACOS_BUNDLE_ID" \
275-
--options runtime --sign "$IDENTITY" "$APP_DIR/MacOS/fips-pad"
275+
--options runtime --sign "$IDENTITY" "$APP_DIR/MacOS/fipspad"
276276
codesign --force --timestamp --identifier "$MACOS_BUNDLE_ID" \
277277
--options runtime --sign "$IDENTITY" "$DIST/FIPSPad.app"
278278
279279
# Create .pkg
280280
PKG_ROOT="$DIST/pkg-root"
281281
mkdir -p "$PKG_ROOT/usr/local/bin"
282-
cp "$BINARY" "$PKG_ROOT/usr/local/bin/fips-pad"
282+
cp "$BINARY" "$PKG_ROOT/usr/local/bin/fipspad"
283283
codesign --force --timestamp --identifier "$MACOS_BUNDLE_ID" \
284-
--options runtime --sign "$IDENTITY" "$PKG_ROOT/usr/local/bin/fips-pad"
284+
--options runtime --sign "$IDENTITY" "$PKG_ROOT/usr/local/bin/fipspad"
285285
286286
PKGBUILD_ARGS=(
287287
--root "$PKG_ROOT"
@@ -302,7 +302,7 @@ jobs:
302302
echo "$NOTARY_API_KEY_P8_B64" | base64 --decode > "$RUNNER_TEMP/authkey.p8"
303303
304304
# Notarize standalone CLI binary distribution zip.
305-
xcrun notarytool submit "$DIST/fips-pad-macos-universal.zip" \
305+
xcrun notarytool submit "$DIST/fipspad-macos-universal.zip" \
306306
--key "$RUNNER_TEMP/authkey.p8" \
307307
--key-id "$NOTARY_API_KEY_ID" \
308308
--issuer "$NOTARY_API_KEY_ISSUER" \
@@ -317,16 +317,16 @@ jobs:
317317
fi
318318
319319
# Checksums
320-
cp "$BINARY" "$DIST/fips-pad"
321-
(cd "$DIST" && shasum -a 256 "fips-pad" "fips-pad-macos-universal.zip" "fipspad_darwin_universal.pkg" > "SHA256SUMS_darwin_universal.txt")
320+
cp "$BINARY" "$DIST/fipspad"
321+
(cd "$DIST" && shasum -a 256 "fipspad" "fipspad-macos-universal.zip" "fipspad_darwin_universal.pkg" > "SHA256SUMS_darwin_universal.txt")
322322
323323
- name: Upload artifacts
324324
uses: actions/upload-artifact@v4
325325
with:
326326
name: macos-universal
327327
path: |
328-
dist/fips-pad
329-
dist/fips-pad-macos-universal.zip
328+
dist/fipspad
329+
dist/fipspad-macos-universal.zip
330330
dist/fipspad_darwin_universal.pkg
331331
dist/SHA256SUMS_darwin_universal.txt
332332
@@ -369,7 +369,7 @@ jobs:
369369
& $signtool sign /fd SHA256 /f $pfxPath /p $env:WIN_PASS `
370370
/tr "http://timestamp.digicert.com" /td SHA256 `
371371
/d "FIPSPad" `
372-
"target\release\fips-pad.exe"
372+
"target\release\fipspad.exe"
373373
if ($LASTEXITCODE -ne 0) {
374374
Write-Host "Signing failed (exit code $LASTEXITCODE), continuing without signature"
375375
} else {
@@ -383,7 +383,7 @@ jobs:
383383
shell: bash
384384
run: |
385385
mkdir -p dist
386-
cp target/release/fips-pad.exe dist/fipspad_windows_amd64.exe
386+
cp target/release/fipspad.exe dist/fipspad_windows_amd64.exe
387387
(cd dist && sha256sum fipspad_windows_amd64.exe > SHA256SUMS_windows_amd64.txt)
388388
389389
- name: Upload artifacts
@@ -418,7 +418,7 @@ jobs:
418418
- name: Package
419419
run: |
420420
mkdir -p dist
421-
cp target/release/fips-pad dist/fipspad_linux_amd64
421+
cp target/release/fipspad dist/fipspad_linux_amd64
422422
(cd dist && sha256sum fipspad_linux_amd64 > SHA256SUMS_linux_amd64.txt)
423423
424424
- name: Upload artifacts
@@ -471,8 +471,8 @@ jobs:
471471
472472
Attached artifacts:
473473
474-
- `fips-pad` — Raw macOS universal CLI binary (signed).
475-
- `fips-pad-macos-universal.zip` — Standalone macOS binary package submitted to Apple notarization when credentials are configured.
474+
- `fipspad` — Raw macOS universal CLI binary (signed).
475+
- `fipspad-macos-universal.zip` — Standalone macOS binary package submitted to Apple notarization when credentials are configured.
476476
- `fipspad_darwin_universal.pkg` — macOS installer package (signed, notarized, and stapled when credentials are configured), so Gatekeeper can validate it offline.
477477
- `fipspad_linux_amd64` — Linux amd64 binary.
478478
- `fipspad_windows_amd64.exe` — Windows amd64 executable (signed when credentials are configured).

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ signing — see the script header.
8888

8989
```bash
9090
cargo build --release --features production -p fips-pad-ui
91-
cp target/release/fips-pad dist/fipspad_linux_amd64
91+
cp target/release/fipspad dist/fipspad_linux_amd64
9292
```
9393

9494
## Release workflow

crates/ui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version.workspace = true
44
edition.workspace = true
55

66
[[bin]]
7-
name = "fips-pad"
7+
name = "fipspad"
88
path = "src/main.rs"
99

1010
[features]

crates/ui/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn main() {
101101
if !status.gate_passed {
102102
eprintln!("FIPS gate failed. FIPSPad cannot run on this system.\n");
103103
gate::print_human_readable(&status);
104-
eprintln!("\nRun `fips-pad --setup` for instructions.");
104+
eprintln!("\nRun `fipspad --setup` for instructions.");
105105
std::process::exit(gate::EXIT_GATE_FAILED);
106106
}
107107

scripts/package-macos.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo ""
4545

4646
echo "Building release binary..."
4747
(cd "$ROOT_DIR" && cargo build --release --features production -p fips-pad-ui)
48-
BINARY="$ROOT_DIR/target/release/fips-pad"
48+
BINARY="$ROOT_DIR/target/release/fipspad"
4949

5050
if [ ! -f "$BINARY" ]; then
5151
echo "Error: Binary not found at $BINARY" >&2
@@ -59,7 +59,7 @@ APP_DIR="$DIST_DIR/FIPSPad.app/Contents/MacOS"
5959
mkdir -p "$APP_DIR"
6060
mkdir -p "$DIST_DIR/FIPSPad.app/Contents/Resources"
6161

62-
cp "$BINARY" "$APP_DIR/fips-pad"
62+
cp "$BINARY" "$APP_DIR/fipspad"
6363

6464
# Info.plist
6565
cat > "$DIST_DIR/FIPSPad.app/Contents/Info.plist" <<PLIST
@@ -68,7 +68,7 @@ cat > "$DIST_DIR/FIPSPad.app/Contents/Info.plist" <<PLIST
6868
<plist version="1.0">
6969
<dict>
7070
<key>CFBundleExecutable</key>
71-
<string>fips-pad</string>
71+
<string>fipspad</string>
7272
<key>CFBundleIdentifier</key>
7373
<string>${BUNDLE_ID}</string>
7474
<key>CFBundleName</key>
@@ -105,7 +105,7 @@ codesign --force --timestamp \
105105
--identifier "$BUNDLE_ID" \
106106
--options runtime \
107107
--sign "$IDENTITY" \
108-
"$DIST_DIR/FIPSPad.app/Contents/MacOS/fips-pad"
108+
"$DIST_DIR/FIPSPad.app/Contents/MacOS/fipspad"
109109

110110
codesign --force --timestamp \
111111
--identifier "$BUNDLE_ID" \
@@ -121,14 +121,14 @@ codesign --verify --strict --verbose=2 "$DIST_DIR/FIPSPad.app"
121121
PKG_OUT="$DIST_DIR/fipspad_darwin_${ARCH}.pkg"
122122
PKG_ROOT="$DIST_DIR/pkg-root"
123123
mkdir -p "$PKG_ROOT/usr/local/bin"
124-
cp "$BINARY" "$PKG_ROOT/usr/local/bin/fips-pad"
124+
cp "$BINARY" "$PKG_ROOT/usr/local/bin/fipspad"
125125

126126
# Sign the binary inside the pkg root too
127127
codesign --force --timestamp \
128128
--identifier "$BUNDLE_ID" \
129129
--options runtime \
130130
--sign "$IDENTITY" \
131-
"$PKG_ROOT/usr/local/bin/fips-pad"
131+
"$PKG_ROOT/usr/local/bin/fipspad"
132132

133133
PKGBUILD_ARGS=(
134134
--root "$PKG_ROOT"

scripts/package-windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo ""
2424

2525
echo "Building release binary..."
2626
(cd "$ROOT_DIR" && cargo build --release --features production -p fips-pad-ui)
27-
BINARY="$ROOT_DIR/target/release/fips-pad.exe"
27+
BINARY="$ROOT_DIR/target/release/fipspad.exe"
2828

2929
if [ ! -f "$BINARY" ]; then
3030
echo "Error: Binary not found at $BINARY" >&2

scripts/test-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if [[ -f fipspad_darwin_universal.pkg ]]; then
7676
cpio -i < "../$PAYLOAD" 2>/dev/null || tar -xf "../$PAYLOAD" 2>/dev/null || true
7777
cd ..
7878

79-
BINARY=$(find pkg_contents -name "fips-pad" -type f | head -1)
79+
BINARY=$(find pkg_contents -name "fipspad" -type f | head -1)
8080
if [[ -n "$BINARY" ]]; then
8181
echo "Binary found: $BINARY"
8282

0 commit comments

Comments
 (0)