Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
f00889d1
Commit
f00889d1
authored
1 year ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
update notarization method and keys
parent
16e3e8ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.erb/scripts/notarize.js
+6
-7
6 additions, 7 deletions
.erb/scripts/notarize.js
.github/workflows/publish.yml
+8
-4
8 additions, 4 deletions
.github/workflows/publish.yml
with
14 additions
and
11 deletions
.erb/scripts/notarize.js
+
6
−
7
View file @
f00889d1
...
...
@@ -12,9 +12,9 @@ exports.default = async function notarizeMacos(context) {
return
;
}
if
(
!
(
'
APPLE_
ID
'
in
process
.
env
&&
'
APPLE_
ID_PASS
'
in
process
.
env
))
{
if
(
!
(
'
APPLE_
API_KEY
'
in
process
.
env
&&
'
APPLE_
API_KEY_ID
'
in
process
.
env
))
{
console
.
warn
(
'
Skipping notarizing step. APPLE_
ID
and APPLE_
ID_PASS
env variables must be set
'
'
Skipping notarizing step. APPLE_
API_KEY
and APPLE_
API_KEY_ID
env variables must be set
'
);
return
;
}
...
...
@@ -22,11 +22,10 @@ exports.default = async function notarizeMacos(context) {
const
appName
=
context
.
packager
.
appInfo
.
productFilename
;
await
notarize
({
appBundleId
:
build
.
appId
,
appPath
:
`
${
appOutDir
}
/
${
appName
}
.app`
,
apple
Id
:
process
.
env
.
APPLE_
ID
,
apple
IdPasswor
d
:
process
.
env
.
APPLE_
ID_PASS
,
teamId
:
process
.
env
.
APPLE_
TEAM_ID
,
tool
:
'
legacy
'
,
apple
ApiKey
:
process
.
env
.
APPLE_
API_KEY
,
apple
ApiKeyI
d
:
process
.
env
.
APPLE_
API_KEY_ID
,
appleApiIssuer
:
process
.
env
.
APPLE_
API_ISSUER
,
tool
:
'
notarytool
'
,
});
};
This diff is collapsed.
Click to expand it.
.github/workflows/publish.yml
+
8
−
4
View file @
f00889d1
...
...
@@ -8,7 +8,6 @@ on:
jobs
:
publish
:
runs-on
:
${{ matrix.os }}
strategy
:
...
...
@@ -31,14 +30,19 @@ jobs:
npm run postinstall
npm run build
-
name
:
copy p8 key to file
run
:
|
echo "${{ secrets.APPLE_API_KEY_P8_FILE }}" > api_key.p8
-
name
:
Publish releases
env
:
# These values are used for auto updates signing
APPLE_ID
:
${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD
:
${{ secrets.APPLE_ID_PASS }}
APPLE_TEAM_ID
:
${{ secrets.APPLE_TEAM_ID }}
CSC_LINK
:
${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD
:
${{ secrets.CSC_KEY_PASSWORD }}
# Used for apple notarization
APPLE_API_KEY
:
'
api_key.p8'
APPLE_API_KEY_ID
:
${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_ISSUER
:
${{ secrets.APPLE_API_ISSUER }}
# This is used for uploading release assets to github
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment