mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Allow bundled extensions to use codesign (#5438)
This commit is contained in:
parent
0c02daede7
commit
1db19396f2
@ -94,9 +94,25 @@ jobs:
|
|||||||
GH_TOKEN: $(LENS_IDE_GH_TOKEN)
|
GH_TOKEN: $(LENS_IDE_GH_TOKEN)
|
||||||
displayName: Customize config
|
displayName: Customize config
|
||||||
|
|
||||||
- script: make build
|
- bash: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Importing codesign certificate ..."
|
||||||
|
echo $CSC_LINK | base64 -D > certificate.p12
|
||||||
|
security create-keychain -p $KEYCHAIN_PASSWORD build.keychain
|
||||||
|
security set-keychain-settings -lut 21600 build.keychain
|
||||||
|
security default-keychain -s build.keychain
|
||||||
|
security unlock-keychain -p $KEYCHAIN_PASSWORD build.keychain
|
||||||
|
security import certificate.p12 -k build.keychain -P $CSC_KEY_PASSWORD -T /usr/bin/codesign -T /usr/bin/security -A
|
||||||
|
security set-key-partition-list -S apple-tool:,apple: -k $KEYCHAIN_PASSWORD build.keychain
|
||||||
|
|
||||||
|
rm certificate.p12
|
||||||
|
echo "Codesign certificate imported!"
|
||||||
|
|
||||||
|
make build
|
||||||
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
env:
|
env:
|
||||||
|
KEYCHAIN_PASSWORD: secretz
|
||||||
APPLEID: $(APPLEID)
|
APPLEID: $(APPLEID)
|
||||||
APPLEIDPASS: $(APPLEIDPASS)
|
APPLEIDPASS: $(APPLEIDPASS)
|
||||||
CSC_LINK: $(CSC_LINK)
|
CSC_LINK: $(CSC_LINK)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user