Skip to content

Commit d4ae259

Browse files
author
techartdev
committed
feat: enhance Cargo.toml files with repository, description, keywords, and categories
fix: update release workflow to conditionally set Apple signing identity
1 parent 4d5b055 commit d4ae259

5 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/release-desktop.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ jobs:
111111
security set-key-partition-list -S apple-tool:,apple: \
112112
-s -k "$KEYCHAIN_PASSWORD" build.keychain
113113
114+
# Only expose the signing identity when a certificate was actually imported.
115+
# If this step is skipped, APPLE_SIGNING_IDENTITY is never set, so Tauri
116+
# will not attempt to call codesign at all.
117+
- name: Set Apple signing identity
118+
if: matrix.platform == 'macos' && env.APPLE_CERTIFICATE != ''
119+
run: echo "APPLE_SIGNING_IDENTITY=${{ secrets.APPLE_SIGNING_IDENTITY }}" >> $GITHUB_ENV
120+
114121
# ── Tauri build ──────────────────────────────────────────────────────────
115122
- name: Build Tauri app
116123
uses: tauri-apps/tauri-action@v0
@@ -120,7 +127,9 @@ jobs:
120127
APPLE_ID: ${{ secrets.APPLE_ID }}
121128
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
122129
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
123-
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
130+
# APPLE_SIGNING_IDENTITY is injected into $GITHUB_ENV only when a
131+
# certificate was imported (see "Set Apple signing identity" step).
132+
# Omitting it here prevents codesign from running with an empty identity.
124133
# Tauri updater signing (optional — set to enable auto-updates)
125134
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
126135
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ resolver = "2"
1212
edition = "2024"
1313
license = "MPL-2.0"
1414
version = "0.1.0"
15+
repository = "https://github.com/techartdev/scp2p"
1516

1617
[workspace.dependencies]
1718
anyhow = "1"

crates/scp2p-cli/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name = "scp2p-cli"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true
6+
repository.workspace = true
7+
description = "Interactive command-line client for the SCP2P peer-to-peer network"
8+
keywords = ["p2p", "cli", "content-sharing", "scp2p"]
9+
categories = ["network-programming", "command-line-utilities"]
610

711
[dependencies]
812
anyhow.workspace = true

crates/scp2p-core/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name = "scp2p-core"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true
6+
repository.workspace = true
7+
description = "Core protocol library for the SCP2P peer-to-peer content-sharing network"
8+
keywords = ["p2p", "dht", "content-sharing", "scp2p"]
9+
categories = ["network-programming", "cryptography"]
610

711
[dependencies]
812
anyhow.workspace = true

crates/scp2p-relay/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "scp2p-relay"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true
6+
repository.workspace = true
67
description = "Standalone relay node for the SCP2P network — easy to deploy on any OS"
78
readme = "README.md"
89
keywords = ["p2p", "relay", "nat-traversal", "scp2p"]

0 commit comments

Comments
 (0)