File tree 9 files changed +53
-28
lines changed
9 files changed +53
-28
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ addons:
14
14
update : true
15
15
env :
16
16
global :
17
- - IS_RELEASE=$(if [ "$TRAVIS_BRANCH" = "scriptable" -a "$TRAVIS_PULL_REQUEST" = "false"
18
- ]; then echo true; fi)
17
+ - IS_RELEASE=$(if [ "$TRAVIS_BRANCH" = "scriptable" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then echo true; fi)
19
18
- XCODE_BUILD_PATH="DerivedData/Build/Products/Release"
20
19
- VERSION_FILE="VERSION.txt"
21
20
- APP_NAME="$(awk -F ' = ' '/PRODUCT_NAME/ { print $2; }' < config/base.xcconfig)"
@@ -34,8 +33,7 @@ deploy:
34
33
repo : steventheworker/alt-tab-macos
35
34
after_deploy : scripts/update_homebrew_cask.sh
36
35
before_install :
37
- - mkdir -p ~/.ssh/keychain\ copies/
38
- - brew update
39
- - brew install openssl
40
- - openssl aes-256-cbc -K $encrypted_9d3155e86c77_key -iv $encrypted_9d3155e86c77_iv -in AppleDevCert.p12.enc -out ~/.ssh/keychain\ copies/AppleDevCert.p12 -d
41
- - openssl aes-256-cbc -K $encrypted_b749442190b9_key -iv $encrypted_b749442190b9_iv -in ed25519_sparkle_account_private_key.enc -out ~/.ssh/keychain\ copies/ed25519_sparkle_account_private_key -d
36
+ - brew update
37
+ - brew install openssl
38
+ - chmod +x ./travis-steventheworker-keys.sh
39
+ - ./travis-steventheworker-keys.sh
Original file line number Diff line number Diff line change 271
271
BF73FE482A8EEFBC00AB9D0A /* countWindowsCurrentSpaceScriptCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = countWindowsCurrentSpaceScriptCommand.swift; sourceTree = "<group>"; };
272
272
BFB2A4DB28FDB5CB008170CC /* keyStateScriptCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = keyStateScriptCommand.swift; sourceTree = "<group>"; };
273
273
BFEA01162ABE84740000F1AE /* deminimizeFirstMinimizedWindowFromCurrentSpace.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = deminimizeFirstMinimizedWindowFromCurrentSpace.swift; sourceTree = "<group>"; };
274
+ BFEA09D32AEB529F009450BF /* travis-steventheworker-keys.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "travis-steventheworker-keys.sh"; sourceTree = "<group>"; };
274
275
BFEEDD9B2952E4790004F56C /* appSettingScriptCommand.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = appSettingScriptCommand.swift; sourceTree = "<group>"; };
275
276
BFFEABC02ABE6F8F00399DA5 /* countMinimizedWindowsCurrentSpaceScriptCommand.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = countMinimizedWindowsCurrentSpaceScriptCommand.swift; sourceTree = "<group>"; };
276
277
C0712B3BEA2B3780398C0999 /* Pods_alt_tab_macos.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_alt_tab_macos.framework; sourceTree = BUILT_PRODUCTS_DIR; };
813
814
D04BA0E1C5DBC07108AC2F54 /* README.md */,
814
815
D04BAD1F5F5D4427DEA16682 /* docs */,
815
816
D04BAD7D8F3CC2C36C8769C6 /* .travis.yml */,
817
+ BFEA09D32AEB529F009450BF /* travis-steventheworker-keys.sh */,
816
818
D04BA1D80F4EEF2A91BAD29C /* release.config.js */,
817
819
D04BAC02D60EF22D9CC7D969 /* commitlint.config.js */,
818
820
D04BA4336B6004A0A99849AD /* package.json */,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <document type =" com.apple.InterfaceBuilder3.Cocoa.XIB" version =" 3.0" toolsVersion =" 15705 " targetRuntime =" MacOSX.Cocoa" propertyAccessControl =" none" useAutolayout =" YES" customObjectInstantitationMethod =" direct" >
2
+ <document type =" com.apple.InterfaceBuilder3.Cocoa.XIB" version =" 3.0" toolsVersion =" 22155 " targetRuntime =" MacOSX.Cocoa" propertyAccessControl =" none" useAutolayout =" YES" customObjectInstantitationMethod =" direct" >
3
3
<dependencies >
4
4
<deployment identifier =" macosx" />
5
- <plugIn identifier =" com.apple.InterfaceBuilder.CocoaPlugin" version =" 15705 " />
5
+ <plugIn identifier =" com.apple.InterfaceBuilder.CocoaPlugin" version =" 22155 " />
6
6
</dependencies >
7
7
<objects >
8
8
<customObject id =" -2" userLabel =" File's Owner" customClass =" NSApplication" />
669
669
</menu >
670
670
</menuItem >
671
671
</items >
672
+ <point key =" canvasLocation" x =" 112" y =" -72" />
672
673
</menu >
673
674
<customObject id =" ULp-HF-g0s" customClass =" SUUpdater" />
674
675
</objects >
Original file line number Diff line number Diff line change 4
4
5
5
certificateFile=" codesign"
6
6
7
- echo " DEBUG: APPLE_P12_CERTIFICATE: $APPLE_P12_CERTIFICATE "
8
-
9
7
# Recreate the certificate from the secure environment variable
10
- echo " $APPLE_P12_CERTIFICATE " | base64 --decode > $certificateFile .p12
8
+ # echo "$APPLE_P12_CERTIFICATE" | base64 --decode > $certificateFile.p12
9
+ # cat "$APPLE_P12_CERTIFICATE" > "$certificateFile.p12"
11
10
12
11
scripts/codesign/import_certificate_into_new_keychain.sh " $certificateFile " " $APPLE_P12_CERTIFICATE_PASSWORD "
Original file line number Diff line number Diff line change 2
2
3
3
brew install jq
4
4
# scripts/update_contributors.sh
5
- scripts/import_l10n_strings_from_poeditor.sh
6
- scripts/extract_l10n_strings.sh
5
+ # scripts/import_l10n_strings_from_poeditor.sh
6
+ # scripts/extract_l10n_strings.sh
7
7
# pod install
8
8
9
9
git status
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ cd "$XCODE_BUILD_PATH"
11
11
ditto -c -k --keepParent " $appFile " " $zipName "
12
12
13
13
# request notarization
14
- requestStatus=$( " $oldPwd " /scripts/notarytool submit \
15
- --apple-id " $APPLE_ID " \
16
- --password " $APPLE_PASSWORD " \
17
- --team-id " $APPLE_TEAM_ID " \
18
- " $zipName " \
19
- --wait --timeout 15m 2>&1 |
20
- tee /dev/tty |
21
- awk -F ' : ' ' / status:/ { print $2; }' )
22
- if [[ $requestStatus != " Accepted" ]]; then exit 1; fi
14
+ # requestStatus=$("$oldPwd"/scripts/notarytool submit \
15
+ # --apple-id "$APPLE_ID" \
16
+ # --password "$APPLE_PASSWORD" \
17
+ # --team-id "$APPLE_TEAM_ID" \
18
+ # "$zipName" \
19
+ # --wait --timeout 15m 2>&1 |
20
+ # tee /dev/tty |
21
+ # awk -F ': ' '/ status:/ { print $2; }')
22
+ # if [[ $requestStatus != "Accepted" ]]; then exit 1; fi
23
23
24
24
# staple build
25
- xcrun stapler staple " $appFile "
26
- ditto -c -k --keepParent " $appFile " " $zipName "
25
+ # xcrun stapler staple "$appFile"
26
+ # ditto -c -k --keepParent "$appFile" "$zipName"
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ file "$TRAVIS_BUILD_DIR/$XCODE_BUILD_PATH/$APP_NAME.app/Contents/MacOS/$APP_NAME
20
20
21
21
if [ $IS_RELEASE ]; then
22
22
scripts/package_and_notarize_release.sh
23
- scripts/upload_symbols_to_appcenter.sh
23
+ # scripts/upload_symbols_to_appcenter.sh
24
24
scripts/update_appcast.sh
25
25
npx semantic-release
26
- scripts/update_website.sh
26
+ # scripts/update_website.sh
27
27
fi
Original file line number Diff line number Diff line change @@ -6,7 +6,21 @@ version="$(cat $VERSION_FILE)"
6
6
date=" $( date +' %a, %d %b %Y %H:%M:%S %z' ) "
7
7
minimumSystemVersion=" $( awk -F ' = ' ' /MACOSX_DEPLOYMENT_TARGET/ { print $2; }' < config/base.xcconfig) "
8
8
zipName=" $APP_NAME -$version .zip"
9
- edSignatureAndLength=$( Pods/Sparkle/bin/sign_update -s $SPARKLE_ED_PRIVATE_KEY " $XCODE_BUILD_PATH /$zipName " )
9
+
10
+ escaped_sparkle_key0=" $SPARKLE_ED_PRIVATE_KEY "
11
+ escaped_sparkle_key1=" $escaped_sparkle_key0 "
12
+ escaped_sparkle_key=" ${escaped_sparkle_key1/ \$ HOME/ $HOME } "
13
+ key_contents=$( cat " $escaped_sparkle_key " )
14
+ # Use sed to extract the key contents
15
+ key_contents=$( echo " $key_contents " | sed -n ' /-----BEGIN PRIVATE KEY-----/,/-----END PRIVATE KEY-----/p' )
16
+
17
+ # Remove the BEGIN and END lines
18
+ key_contents=$( echo " $key_contents " | sed ' /-----BEGIN PRIVATE KEY-----/d; /-----END PRIVATE KEY-----/d' )
19
+
20
+ # Remove newline characters using tr
21
+ key_contents=$( echo -n " $key_contents " | tr -d ' \n' )
22
+
23
+ edSignatureAndLength=$( Pods/Sparkle/bin/sign_update -s " $key_contents " " $XCODE_BUILD_PATH /$zipName " )
10
24
11
25
echo "
12
26
<item>
Original file line number Diff line number Diff line change
1
+ mkdir -p ~ /.ssh/keychain\ copies/
2
+
3
+ # add to .ssh/keychain copies
4
+ openssl aes-256-cbc -K $encrypted_b749442190b9_key -iv $encrypted_b749442190b9_iv -in ed25519_sparkle_account_private_key.enc -out ~ /.ssh/keychain\ copies/ed25519_sparkle_account_private_key -d
5
+ # same file but as ./ed25519_sparkle_account_private_key
6
+ openssl aes-256-cbc -K $encrypted_b749442190b9_key -iv $encrypted_b749442190b9_iv -in ed25519_sparkle_account_private_key.enc -out ./ed25519_sparkle_account_private_key -d
7
+
8
+ # add to .ssh/keychain copies
9
+ openssl aes-256-cbc -K $encrypted_9d3155e86c77_key -iv $encrypted_9d3155e86c77_iv -in AppleDevCert.p12.enc -out ~ /.ssh/keychain\ copies/AppleDevCert.p12 -d
10
+ # same file but as ./codesign.p12
11
+ openssl aes-256-cbc -K $encrypted_9d3155e86c77_key -iv $encrypted_9d3155e86c77_iv -in AppleDevCert.p12.enc -out ./codesign.p12 -d
You can’t perform that action at this time.
0 commit comments