Skip to content

Commit e978f2a

Browse files
committed
retry
1 parent 5ab24f5 commit e978f2a

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
APP_PROF_PATH: /tmp/app.provisionprofile
1818
EXT_PROF_PATH: /tmp/ext.provisionprofile
1919
KEYCHAIN_PATH: /tmp/app-signing.keychain-db
20-
RELEASE_BUILD: true
2120
steps:
2221
- name: Harden Runner
2322
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
@@ -58,7 +57,6 @@ jobs:
5857
5958
- name: Build
6059
run: |
61-
make
6260
./scripts/build.sh
6361
6462
- name: Clean Up

Coder Desktop/project.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ targets:
135135
INFOPLIST_KEY_NSHumanReadableCopyright: ""
136136
SWIFT_EMIT_LOC_STRINGS: YES
137137
PRODUCT_BUNDLE_IDENTIFIER: "com.coder.Coder-Desktop"
138-
# Populated from environment variables at `xcodebuild` time
139-
PROVISIONING_PROFILE_SPECIFIER: $CODER_APP_PROFILE
138+
# Populated from environment variable during `xcodegen`
139+
PROVISIONING_PROFILE_SPECIFIER: ${APP_PROVISIONING_PROFILE_ID}
140140

141141
# (ThomasK33): Install the application into the /Applications folder
142142
# so that macOS stops complaining about the app being run from an
@@ -148,7 +148,7 @@ targets:
148148
dependencies:
149149
- target: CoderSDK
150150
embed: true
151-
- target: VPNLib
151+
- target: VPNXPC
152152
embed: true
153153
- target: VPN
154154
embed: without-signing # Embed without signing.
@@ -218,13 +218,16 @@ targets:
218218
PRODUCT_NAME: "$(PRODUCT_BUNDLE_IDENTIFIER)"
219219
SWIFT_EMIT_LOC_STRINGS: YES
220220
SWIFT_OBJC_BRIDGING_HEADER: "VPN/com_coder_Coder_Desktop_VPN-Bridging-Header.h"
221-
# Populated from environment variables at `xcodebuild` time
222-
PROVISIONING_PROFILE_SPECIFIER: $CODER_EXT_PROFILE
221+
CODE_SIGN_IDENTITY: "Apple Development"
222+
CODE_SIGN_STYLE: Automatic
223+
PROVISIONING_PROFILE_SPECIFIER: ${EXT_PROVISIONING_PROFILE_ID}
223224
dependencies:
224225
- target: VPNLib
225226
embed: true
226227
- target: CoderSDK
227228
embed: true
229+
- target: VPNXPC
230+
embed: true
228231
- sdk: NetworkExtension.framework
229232

230233
VPNLib:
@@ -240,8 +243,6 @@ targets:
240243
DYLIB_COMPATIBILITY_VERSION: 1
241244
DYLIB_CURRENT_VERSION: 1
242245
DYLIB_INSTALL_NAME_BASE: "@rpath"
243-
CODE_SIGN_IDENTITY: "Apple Development"
244-
CODE_SIGN_STYLE: Automatic
245246
LD_RUNPATH_SEARCH_PATHS:
246247
- "@executable_path/../Frameworks"
247248
- "@loader_path/Frameworks"
@@ -284,8 +285,6 @@ targets:
284285
DYLIB_COMPATIBILITY_VERSION: 1
285286
DYLIB_CURRENT_VERSION: 1
286287
DYLIB_INSTALL_NAME_BASE: "@rpath"
287-
CODE_SIGN_IDENTITY: "Apple Development"
288-
CODE_SIGN_STYLE: Automatic
289288
scheme:
290289
testTargets:
291290
- CoderSDKTests

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ SWIFT_VERSION := 6.0
1313

1414
ifdef RELEASE_BUILD
1515
PTP_SUFFIX := -systemextension
16+
APP_PROVISIONING_PROFILE_ID := ${APP_PROVISIONING_PROFILE_ID}
17+
EXT_PROVISIONING_PROFILE_ID := ${EXT_PROVISIONING_PROFILE_ID}
1618
else
1719
PTP_SUFFIX := ""
1820
endif
@@ -26,6 +28,9 @@ $(XCPROJECT): $(PROJECT)/project.yml
2628
cd $(PROJECT); \
2729
SWIFT_VERSION=$(SWIFT_VERSION) \
2830
PTP_SUFFIX=$(PTP_SUFFIX) \
31+
GLOBAL_CODE_SIGN_STYLE=$(GLOBAL_CODE_SIGN_STYLE) \
32+
APP_PROVISIONING_PROFILE_ID=$(APP_PROVISIONING_PROFILE_ID) \
33+
EXT_PROVISIONING_PROFILE_ID=$(EXT_PROVISIONING_PROFILE_ID) \
2934
xcodegen
3035

3136
$(PROJECT)/VPNLib/vpn.pb.swift: $(PROJECT)/VPNLib/vpn.proto

scripts/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ get_uuid() {
1111
XCODE_PROVISIONING_PROFILES_DIR="$HOME/Library/Developer/Xcode/UserData/Provisioning Profiles"
1212
CODE_SIGN_IDENTITY="Developer ID Application: Coder Technologies Inc (4399GN35BJ)"
1313

14-
app_prof_id=$(get_uuid "$APP_PROF_PATH")
15-
ext_prof_id=$(get_uuid "$EXT_PROF_PATH")
14+
export APP_PROVISIONING_PROFILE_ID=$(get_uuid "$APP_PROF_PATH")
15+
export EXT_PROVISIONING_PROFILE_ID=$(get_uuid "$EXT_PROF_PATH")
16+
export RELEASE_BUILD=true
17+
# `xcodegen` environment variables set
18+
make
1619

1720
# Install Provisioning Profiles
1821
cp "$APP_PROF_PATH" "${XCODE_PROVISIONING_PROFILES_DIR}/${app_prof_id}.provisionprofile"

0 commit comments

Comments
 (0)