mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 21:11:51 +03:00
build: beta build (#2069)
This commit is contained in:
parent
023cbc30ea
commit
044e6da00d
10
.github/workflows/release-desktop-app.yml
vendored
10
.github/workflows/release-desktop-app.yml
vendored
@ -17,11 +17,11 @@ on:
|
||||
type: boolean
|
||||
required: true
|
||||
default: true
|
||||
is-canary:
|
||||
description: 'Canary Release? The app will be named as "AFFiNE Canary"'
|
||||
type: boolean
|
||||
build-type:
|
||||
description: 'Build Type (canary, beta or stable)'
|
||||
type: string
|
||||
required: true
|
||||
default: true
|
||||
default: canary
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
@ -35,7 +35,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
BUILD_TYPE: ${{ github.event.inputs.is-canary == 'true' && 'canary' || 'stable' }}
|
||||
BUILD_TYPE: ${{ github.event.inputs.build-type }}
|
||||
|
||||
jobs:
|
||||
before-make:
|
||||
|
@ -5,14 +5,14 @@ const {
|
||||
|
||||
const path = require('node:path');
|
||||
|
||||
const isCanary = process.env.BUILD_TYPE === 'canary';
|
||||
const buildType = isCanary ? 'canary' : 'stable';
|
||||
const productName = isCanary ? 'AFFiNE-Canary' : 'AFFiNE';
|
||||
const icoPath = isCanary
|
||||
? './resources/icons/icon_canary.ico'
|
||||
const buildType = (process.env.BUILD_TYPE || 'stable').trim().toLowerCase();
|
||||
const stableBuild = buildType === 'stable';
|
||||
const productName = !stableBuild ? `AFFiNE-${buildType}` : 'AFFiNE';
|
||||
const icoPath = !stableBuild
|
||||
? `./resources/icons/icon_${buildType}.ico`
|
||||
: './resources/icons/icon.ico';
|
||||
const icnsPath = isCanary
|
||||
? './resources/icons/icon_canary.icns'
|
||||
const icnsPath = !stableBuild
|
||||
? `./resources/icons/icon_${buildType}.icns`
|
||||
: './resources/icons/icon.icns';
|
||||
|
||||
const arch =
|
||||
@ -24,11 +24,12 @@ const arch =
|
||||
* @type {import('@electron-forge/shared-types').ForgeConfig}
|
||||
*/
|
||||
module.exports = {
|
||||
buildIdentifier: isCanary ? 'canary' : 'stable',
|
||||
buildIdentifier: buildType,
|
||||
packagerConfig: {
|
||||
name: productName,
|
||||
appBundleId: fromBuildIdentifier({
|
||||
canary: 'pro.affine.canary',
|
||||
beta: 'pro.affine.beta',
|
||||
stable: 'pro.affine.app',
|
||||
}),
|
||||
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 |
Loading…
Reference in New Issue
Block a user