mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-07-26 22:10:05 -04:00
build mas-dev on CircleCI
This commit is contained in:
parent
8868556cba
commit
7c7ddd1e6c
3 changed files with 10 additions and 2 deletions
|
@ -57,6 +57,7 @@ jobs:
|
||||||
echo "$2" | base64 --decode > "$1"
|
echo "$2" | base64 --decode > "$1"
|
||||||
}
|
}
|
||||||
decodeToFile embedded.provisionprofile "${MAC_PROVISION_PROFILE}"
|
decodeToFile embedded.provisionprofile "${MAC_PROVISION_PROFILE}"
|
||||||
|
decodeToFile mas-dev.provisionprofile "${MAC_DEV_PROVISION_PROFILE}"
|
||||||
decodeToFile code-to-learn-macos.p12 "${CSC_MACOS}"
|
decodeToFile code-to-learn-macos.p12 "${CSC_MACOS}"
|
||||||
security -v create-keychain -p circleci circleci.keychain
|
security -v create-keychain -p circleci circleci.keychain
|
||||||
security -v default-keychain -s circleci.keychain
|
security -v default-keychain -s circleci.keychain
|
||||||
|
@ -194,6 +195,7 @@ commands:
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
command: npm run dist
|
command: npm run dist
|
||||||
|
no_output_timeout: 30m # macOS notarization can take longer than the default 10 minutes
|
||||||
environment:
|
environment:
|
||||||
<<: *clear_context
|
<<: *clear_context
|
||||||
WIN_CSC_LINK: ~/codesign.pfx
|
WIN_CSC_LINK: ~/codesign.pfx
|
||||||
|
|
|
@ -27,7 +27,7 @@ mas:
|
||||||
icon: buildResources/ScratchDesktop.icns
|
icon: buildResources/ScratchDesktop.icns
|
||||||
masDev:
|
masDev:
|
||||||
type: development
|
type: development
|
||||||
provisioningProfile: macDeveloperThisDevice.provisionprofile
|
provisioningProfile: mas-dev.provisionprofile
|
||||||
win:
|
win:
|
||||||
icon: buildResources/ScratchDesktop.ico
|
icon: buildResources/ScratchDesktop.ico
|
||||||
target:
|
target:
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const {spawnSync} = require('child_process');
|
const {spawnSync} = require('child_process');
|
||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strip any code signing configuration (CSC) from a set of environment variables.
|
* Strip any code signing configuration (CSC) from a set of environment variables.
|
||||||
|
@ -91,6 +92,7 @@ const runBuilder = function (wrapperConfig, target) {
|
||||||
* same time but doing so limits has unwanted side effects on both macOS and Windows (see function body).
|
* same time but doing so limits has unwanted side effects on both macOS and Windows (see function body).
|
||||||
*/
|
*/
|
||||||
const calculateTargets = function (wrapperConfig) {
|
const calculateTargets = function (wrapperConfig) {
|
||||||
|
const masDevProfile = 'mas-dev.provisionprofile';
|
||||||
const availableTargets = {
|
const availableTargets = {
|
||||||
macAppStore: {
|
macAppStore: {
|
||||||
name: 'mas',
|
name: 'mas',
|
||||||
|
@ -126,7 +128,11 @@ const calculateTargets = function (wrapperConfig) {
|
||||||
// Seems like a bug in electron-builder...
|
// Seems like a bug in electron-builder...
|
||||||
// Running the 'mas' build first means that its output is available while we wait for 'dmg' notarization.
|
// Running the 'mas' build first means that its output is available while we wait for 'dmg' notarization.
|
||||||
// Add macAppStoreDev here to test a MAS-like build locally. You'll need a Mac Developer provisioning profile.
|
// Add macAppStoreDev here to test a MAS-like build locally. You'll need a Mac Developer provisioning profile.
|
||||||
// targets.push(availableTargets.macAppStoreDev);
|
if (fs.existsSync(masDevProfile)) {
|
||||||
|
targets.push(availableTargets.macAppStoreDev);
|
||||||
|
} else {
|
||||||
|
console.log(`skipping target "${availableTargets.macAppStoreDev.name}": ${masDevProfile} missing`);
|
||||||
|
}
|
||||||
if (wrapperConfig.doSign) {
|
if (wrapperConfig.doSign) {
|
||||||
targets.push(availableTargets.macAppStore);
|
targets.push(availableTargets.macAppStore);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue