mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
build: beta build (#2069)
This commit is contained in:
10
.github/workflows/release-desktop-app.yml
vendored
10
.github/workflows/release-desktop-app.yml
vendored
@@ -17,11 +17,11 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
is-canary:
|
build-type:
|
||||||
description: 'Canary Release? The app will be named as "AFFiNE Canary"'
|
description: 'Build Type (canary, beta or stable)'
|
||||||
type: boolean
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: true
|
default: canary
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
@@ -35,7 +35,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ github.event.inputs.is-canary == 'true' && 'canary' || 'stable' }}
|
BUILD_TYPE: ${{ github.event.inputs.build-type }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
before-make:
|
before-make:
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ const {
|
|||||||
|
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
|
|
||||||
const isCanary = process.env.BUILD_TYPE === 'canary';
|
const buildType = (process.env.BUILD_TYPE || 'stable').trim().toLowerCase();
|
||||||
const buildType = isCanary ? 'canary' : 'stable';
|
const stableBuild = buildType === 'stable';
|
||||||
const productName = isCanary ? 'AFFiNE-Canary' : 'AFFiNE';
|
const productName = !stableBuild ? `AFFiNE-${buildType}` : 'AFFiNE';
|
||||||
const icoPath = isCanary
|
const icoPath = !stableBuild
|
||||||
? './resources/icons/icon_canary.ico'
|
? `./resources/icons/icon_${buildType}.ico`
|
||||||
: './resources/icons/icon.ico';
|
: './resources/icons/icon.ico';
|
||||||
const icnsPath = isCanary
|
const icnsPath = !stableBuild
|
||||||
? './resources/icons/icon_canary.icns'
|
? `./resources/icons/icon_${buildType}.icns`
|
||||||
: './resources/icons/icon.icns';
|
: './resources/icons/icon.icns';
|
||||||
|
|
||||||
const arch =
|
const arch =
|
||||||
@@ -24,11 +24,12 @@ const arch =
|
|||||||
* @type {import('@electron-forge/shared-types').ForgeConfig}
|
* @type {import('@electron-forge/shared-types').ForgeConfig}
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
buildIdentifier: isCanary ? 'canary' : 'stable',
|
buildIdentifier: buildType,
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
name: productName,
|
name: productName,
|
||||||
appBundleId: fromBuildIdentifier({
|
appBundleId: fromBuildIdentifier({
|
||||||
canary: 'pro.affine.canary',
|
canary: 'pro.affine.canary',
|
||||||
|
beta: 'pro.affine.beta',
|
||||||
stable: 'pro.affine.app',
|
stable: 'pro.affine.app',
|
||||||
}),
|
}),
|
||||||
icon: icnsPath,
|
icon: icnsPath,
|
||||||
|
|||||||
BIN
apps/electron/resources/icons/icon_beta.icns
Normal file
BIN
apps/electron/resources/icons/icon_beta.icns
Normal file
Binary file not shown.
BIN
apps/electron/resources/icons/icon_beta.ico
Normal file
BIN
apps/electron/resources/icons/icon_beta.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
Reference in New Issue
Block a user