Skip to content

Commit 368b7dc

Browse files
authored
Add npm command to generate production manifest (#56)
We add the commands `npm run generate-prod-manifest` and `npm run validate-prod`. Furthermore, wrong icon dimensions are fixed.
1 parent f42477e commit 368b7dc

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
web/certs/*
33
!web/certs/.gitkeep
44
build/
5-
tmp/
5+
tmp/
6+
manifest.prod.xml

‎manifest.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<DefaultLocale>en-US</DefaultLocale>
1313
<DisplayName DefaultValue="PPTypst" />
1414
<Description DefaultValue="Create and edit Typst equations in PowerPoint." />
15-
<IconUrl DefaultValue="https://localhost:3155/pptypst/icon-96.png" />
16-
<HighResolutionIconUrl DefaultValue="https://localhost:3155/pptypst/icon-96.png" />
15+
<IconUrl DefaultValue="https://localhost:3155/pptypst/icon-32.png" />
16+
<HighResolutionIconUrl DefaultValue="https://localhost:3155/pptypst/icon-64.png" />
1717
<SupportUrl DefaultValue="https://github.com/Splines/pptypst/issues" />
1818

1919
<Hosts>

‎package.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"scripts": {
66
"dev": "vite --config .config/vite.config.js",
77
"build": "vite build --config .config/vite.config.js",
8-
"start": "office-addin-debugging start web/manifest.xml desktop",
9-
"stop": "office-addin-debugging stop web/manifest.xml",
10-
"validate-manifest": "office-addin-manifest validate web/manifest.xml"
8+
"start": "office-addin-debugging start manifest.xml desktop",
9+
"stop": "office-addin-debugging stop manifest.xml",
10+
"validate": "office-addin-manifest validate manifest.xml",
11+
"validate-prod": "office-addin-manifest validate -p manifest.prod.xml",
12+
"generate-prod-manifest": "sed 's|https://localhost:3155/pptypst/|https://splines.github.io/pptypst/|g' manifest.xml > manifest.prod.xml"
1113
},
1214
"devDependencies": {
1315
"@eslint/css": "^0.14.1",

0 commit comments

Comments
 (0)