Skip to content

Commit

Permalink
Splits appx build into own builder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Jul 15, 2020
1 parent 63d9b04 commit d3a430e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 12 deletions.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ before_build:
build_script:
- yarn run sync
- yarn run release-win
- yarn run sync disableUpdate
- yarn run release-appx

test: off
50 changes: 50 additions & 0 deletions electron-builder-appx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"appId": "com.jgraph.drawio.desktop",
"copyright": "Copyright 2017-2019 draw.io",
"asar": true,
"files": [
"**/*",
"!**/WEB-INF{,/**}"
],
"artifactName": "${productName}-${arch}-${version}.${ext}",
"directories": {
"app": "./drawio/src/main/webapp",
"output": "./dist/"
},
"npmRebuild": false,
"publish": {
"provider": "github"
},
"win": {
"target": [
{
"target": "appx",
"arch": [
"x64"
]
}
]
},
"appx": {
"displayName": "draw.io Diagrams",
"publisherDisplayName": "JGraph Ltd",
"identityName": "draw.io.draw.ioDiagrams",
"publisher": "CN=9E628CCB-BE04-4557-A5A8-81EC34B09733"
},
"fileAssociations": [
{
"ext": "drawio",
"name": "draw.io Diagram",
"description": "draw.io Diagram",
"mimeType": "application/vnd.jgraph.mxfile",
"role": "Editor"
},
{
"ext": "vsdx",
"name": "VSDX Document",
"description": "VSDX Document",
"mimeType": "application/vnd.visio",
"role": "Editor"
}
]
}
12 changes: 0 additions & 12 deletions electron-builder-win.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
"arch": [
"x64"
]
},
{
"target": "appx",
"arch": [
"x64"
]
}
]
},
Expand All @@ -45,12 +39,6 @@
"portable": {
"artifactName": "${productName}-${version}-portable.${ext}"
},
"appx": {
"displayName": "draw.io Diagrams",
"publisherDisplayName": "JGraph Ltd",
"identityName": "draw.io.draw.ioDiagrams",
"publisher": "CN=9E628CCB-BE04-4557-A5A8-81EC34B09733"
},
"fileAssociations": [
{
"ext": "drawio",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"sync": "node ./sync.js",
"release-win": "electron-builder --config electron-builder-win.json",
"release-win32": "electron-builder --config electron-builder-win32.json",
"release-appx": "electron-builder --config electron-builder-appx.json",
"release-linux": "electron-builder --config electron-builder-linux-mac.json",
"release-snap": "electron-builder --config electron-builder-snap.json --publish never"
},
Expand Down

0 comments on commit d3a430e

Please sign in to comment.