Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MobiusMei
ygopro
Commits
09e48f34
Commit
09e48f34
authored
Jun 13, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use a script and import cert at once
parent
c4cb5879
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
.ci/sign-macos.sh
.ci/sign-macos.sh
+13
-0
.gitlab-ci.yml
.gitlab-ci.yml
+1
-2
No files found.
.ci/sign-macos.sh
0 → 100755
View file @
09e48f34
#!/bin/bash
set
-x
set
-o
errexit
echo
"
$MACOS_CERTIFICATE
"
|
base64
--decode
--output
cert.p12
security create-keychain
-p
"
$MACOS_KEYCHAIN_PASSWORD
"
"
$MACOS_KEYCHAIN_NAME
"
||
true
security default-keychain
-s
"
$MACOS_KEYCHAIN_NAME
"
security unlock-keychain
-p
"
$MACOS_KEYCHAIN_PASSWORD
"
"
$MACOS_KEYCHAIN_NAME
"
security import cert.p12
-P
"
$MACOS_CERTIFICATE_PASSWORD
"
-T
/usr/bin/codesign
security set-key-partition-list
-S
apple-tool:,apple:
-s
-k
"
$MACOS_KEYCHAIN_PASSWORD
"
"
$MACOS_KEYCHAIN_NAME
"
;
codesign
--deep
--sign
"
$(
security find-identity
-v
-p
codesigning
$MACOS_KEYCHAIN_NAME
|
head
-1
|
grep
-o
'".*"'
|
tr
-d
'"'
)
"
ygopro.app
security lock-keychain
"
$MACOS_KEYCHAIN_NAME
"
.gitlab-ci.yml
View file @
09e48f34
...
@@ -196,8 +196,7 @@ exec_macos_sign:
...
@@ -196,8 +196,7 @@ exec_macos_sign:
-
macos
-
macos
dependencies
:
dependencies
:
-
exec_macos
-
exec_macos
script
:
script
:
./.ci/sign-macos.sh
-
codesign --deep --sign "$(security find-identity -v -p codesigning $MACOS_KEYCHAIN_NAME | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app
artifacts
:
artifacts
:
paths
:
paths
:
-
ygopro.app
-
ygopro.app
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment