Skip to content

Commit

Permalink
find-identity
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeygutkin committed Apr 10, 2024
1 parent 939a291 commit e47e030
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,41 @@ jobs:
- restore_cache:
key: homebrew-cache-{{ arch }}-{{ .Environment.CACHE_VERSION }}-{{ checksum ".circleci/config.yml" }}

- run:
name: Install Wine
command: |
# wine is required to sign windows executables
brew install --cask xquartz
brew install --cask wine-stable
- run:
name: Install gcloud sdk
command: |
# install gcloud sdk
curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.zip --output /Users/distiller/google-cloud-sdk.zip
unzip /Users/distiller/google-cloud-sdk.zip
bash google-cloud-sdk/install.sh --rc-path=/Users/distiller/.bashrc --usage-reporting=false --path-update=true --command-completion=true --install-python=true --quiet
source ~/.bashrc
# Save gcloud credentials service account and authenticate
echo $GOOGLE_SERVICE_ACCOUNT_KEY_BASE64 | base64 --decode > gcloud_service_account.json
export GOOGLE_APPLICATION_CREDENTIALS=gcloud_service_account.json
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
# - run:
# name: Install Wine
# command: |
# # wine is required to sign windows executables
# brew install --cask xquartz
# brew install --cask wine-stable
# - run:
# name: Install gcloud sdk
# command: |
# # install gcloud sdk
# curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.zip --output /Users/distiller/google-cloud-sdk.zip
# unzip /Users/distiller/google-cloud-sdk.zip
# bash google-cloud-sdk/install.sh --rc-path=/Users/distiller/.bashrc --usage-reporting=false --path-update=true --command-completion=true --install-python=true --quiet
# source ~/.bashrc
# # Save gcloud credentials service account and authenticate
# echo $GOOGLE_SERVICE_ACCOUNT_KEY_BASE64 | base64 --decode > gcloud_service_account.json
# export GOOGLE_APPLICATION_CREDENTIALS=gcloud_service_account.json
# gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS

- run:
name: Install Other shit
command: |
# download custom jsign to sign PE
curl -fsSL https://get.rookout.com/jsign-rookout.jar --output jsign.jar
# install electron main window dependencies
yarn
# build typescript code
yarn run build
# CircleCI sets CI=true which makes react return an error when there are warnings in the code
export CI=false
# install dependencies
yarn --cwd=src/webapp && yarn run --cwd=src/webapp build
# save windows certificate locally (WIN_CERT) is base64 of our certificate
echo $WIN_EV_CERT_BASE64_22 | base64 --decode > rookout.crt
export WINDOWS_EV_CERTIFICATE_PATH=rookout.crt
# - run:
# name: Install Other shit
# command: |
# # download custom jsign to sign PE
# curl -fsSL https://get.rookout.com/jsign-rookout.jar --output jsign.jar
# # install electron main window dependencies
# yarn
# # build typescript code
# yarn run build
# # CircleCI sets CI=true which makes react return an error when there are warnings in the code
# export CI=false
# # install dependencies
# yarn --cwd=src/webapp && yarn run --cwd=src/webapp build
# # save windows certificate locally (WIN_CERT) is base64 of our certificate
# echo $WIN_EV_CERT_BASE64_22 | base64 --decode > rookout.crt
# export WINDOWS_EV_CERTIFICATE_PATH=rookout.crt

- run:
name: APPLE_CERT
Expand All @@ -62,12 +62,14 @@ jobs:
security import certificates/mac_cert.p12 -P $CSC_KEY_PASSWORD_2024
export CSC_LINK=certificates/mac_cert.p12
export CSC_KEY_PASSWORD=$CSC_KEY_PASSWORD_2024
- run:
name: Build
command: |
# package code for every distribution (mac, win, linux) and publish as github release
export CSC_FOR_PULL_REQUEST=true
yarn run build-packages-all-distributions
echo ===========
security find-identity -p codesigning
# - run:
# name: Build
# command: |
# # package code for every distribution (mac, win, linux) and publish as github release
# export CSC_FOR_PULL_REQUEST=true
# yarn run build-packages-all-distributions


publish:
Expand Down

0 comments on commit e47e030

Please sign in to comment.