next test build
This commit is contained in:
@@ -6,9 +6,20 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
#if os(macOS)
|
||||||
|
import AppKit
|
||||||
|
#endif
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct iKeyMonApp: App {
|
struct iKeyMonApp: App {
|
||||||
|
init() {
|
||||||
|
#if os(macOS)
|
||||||
|
if let customIcon = NSImage(named: "AppIcon") {
|
||||||
|
NSApplication.shared.applicationIconImage = customIcon
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
MainView()
|
MainView()
|
||||||
|
|||||||
@@ -49,12 +49,12 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
52A9B8BE2ECB68B5004DD4A2 /* Sources */,
|
52A9B8BE2ECB68B5004DD4A2 /* Sources */,
|
||||||
52A9B8BA2ECA35FB004DD4A2 /* NOTES.md */,
|
|
||||||
52A9B7872EC8E7EE004DD4A2 /* Assets.xcassets */,
|
52A9B7872EC8E7EE004DD4A2 /* Assets.xcassets */,
|
||||||
52A9B7882EC8E7EE004DD4A2 /* iKeyMon.entitlements */,
|
52A9B7882EC8E7EE004DD4A2 /* iKeyMon.entitlements */,
|
||||||
52A9B8F72ECB6B8A004DD4A2 /* Preview Content */,
|
52A9B8F72ECB6B8A004DD4A2 /* Preview Content */,
|
||||||
5203C24E2D997D2800576D4A /* Products */,
|
5203C24E2D997D2800576D4A /* Products */,
|
||||||
52A9B8212EC8FA8A004DD4A2 /* CHANGELOG.md */,
|
52A9B8212EC8FA8A004DD4A2 /* CHANGELOG.md */,
|
||||||
|
52A9B8BA2ECA35FB004DD4A2 /* NOTES.md */,
|
||||||
52A9B9712ECF751C004DD4A2 /* signing.env.example */,
|
52A9B9712ECF751C004DD4A2 /* signing.env.example */,
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ xcodebuild \
|
|||||||
-scheme "$SCHEME" \
|
-scheme "$SCHEME" \
|
||||||
-configuration Release \
|
-configuration Release \
|
||||||
-derivedDataPath "$BUILD_DIR" \
|
-derivedDataPath "$BUILD_DIR" \
|
||||||
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
clean build
|
clean build
|
||||||
|
|
||||||
APP_PATH="$BUILD_DIR/Build/Products/Release/iKeyMon.app"
|
APP_PATH="$BUILD_DIR/Build/Products/Release/iKeyMon.app"
|
||||||
@@ -29,6 +30,20 @@ if [[ ! -d "$APP_PATH" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${CODESIGN_IDENTITY:-}" ]]; then
|
||||||
|
echo "🔏 Codesigning app with identity: $CODESIGN_IDENTITY"
|
||||||
|
codesign \
|
||||||
|
--deep \
|
||||||
|
--force \
|
||||||
|
--options runtime \
|
||||||
|
--timestamp \
|
||||||
|
--entitlements "$ROOT_DIR/iKeyMon.entitlements" \
|
||||||
|
--sign "$CODESIGN_IDENTITY" \
|
||||||
|
"$APP_PATH"
|
||||||
|
else
|
||||||
|
echo "⚠️ Skipping codesign (CODESIGN_IDENTITY not set)."
|
||||||
|
fi
|
||||||
|
|
||||||
STAGING_DIR=$(mktemp -d)
|
STAGING_DIR=$(mktemp -d)
|
||||||
mkdir -p "$STAGING_DIR"
|
mkdir -p "$STAGING_DIR"
|
||||||
cp -R "$APP_PATH" "$STAGING_DIR/"
|
cp -R "$APP_PATH" "$STAGING_DIR/"
|
||||||
@@ -36,13 +51,6 @@ ln -s /Applications "$STAGING_DIR/Applications"
|
|||||||
mkdir -p "$STAGING_DIR/.background"
|
mkdir -p "$STAGING_DIR/.background"
|
||||||
cp "$ROOT_DIR/Assets/dmg_background.png" "$STAGING_DIR/.background/background.png"
|
cp "$ROOT_DIR/Assets/dmg_background.png" "$STAGING_DIR/.background/background.png"
|
||||||
|
|
||||||
if [[ -n "${CODESIGN_IDENTITY:-}" ]]; then
|
|
||||||
echo "🔏 Codesigning app with identity: $CODESIGN_IDENTITY"
|
|
||||||
codesign --deep --force --options runtime --sign "$CODESIGN_IDENTITY" "$APP_PATH"
|
|
||||||
else
|
|
||||||
echo "⚠️ Skipping codesign (CODESIGN_IDENTITY not set)."
|
|
||||||
fi
|
|
||||||
|
|
||||||
VERSION=$(xcodebuild \
|
VERSION=$(xcodebuild \
|
||||||
-project "$ROOT_DIR/$PROJECT" \
|
-project "$ROOT_DIR/$PROJECT" \
|
||||||
-scheme "$SCHEME" \
|
-scheme "$SCHEME" \
|
||||||
|
|||||||
@@ -2,4 +2,3 @@ CODESIGN_IDENTITY="Developer ID Application: Your Name (TEAMID1234)"
|
|||||||
NOTARY_APPLE_ID="appleid@example.com"
|
NOTARY_APPLE_ID="appleid@example.com"
|
||||||
NOTARY_TEAM_ID="TEAMID1234"
|
NOTARY_TEAM_ID="TEAMID1234"
|
||||||
NOTARY_PASSWORD="app-specific-password"
|
NOTARY_PASSWORD="app-specific-password"
|
||||||
3
|
|
||||||
|
|||||||
Reference in New Issue
Block a user