Skip to content

Commit 3b406a0

Browse files
committed
Use Electron APIs as name for mac app store build
1 parent 53bbf46 commit 3b406a0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>Electron API Demos</title>
65

76
<link rel="stylesheet" href="assets/css/variables.css">
87
<link rel="stylesheet" href="assets/css/nativize.css">

main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function initialize () {
2020
var windowOptions = {
2121
width: 1080,
2222
minWidth: 680,
23-
height: 840
23+
height: 840,
24+
title: process.mas ? 'Electron APIs' : app.getName()
2425
}
2526

2627
if (process.platform === 'linux') {

script/mas.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
set -ex
44

5+
# App Store does not allow the work "demos" in the name
6+
APP="Electron APIs"
7+
58
electron-packager . \
9+
"$APP" \
610
--asar \
711
--overwrite \
812
--platform=mas \
@@ -14,7 +18,6 @@ electron-packager . \
1418
--out=out \
1519
--extend-info=assets/mac/info.plist
1620

17-
APP="$npm_package_productName"
1821
APP_PATH="./out/$APP-mas-x64/$APP.app"
1922
RESULT_PATH="./out/$APP.pkg"
2023
APP_KEY="3rd Party Mac Developer Application: GitHub (VEKTX9H2N7)"

0 commit comments

Comments
 (0)