Skip to content

Commit

Permalink
Added dmg creation to release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcclive committed Aug 21, 2019
1 parent 0aa8758 commit 93725a2
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ FakesAssemblies/
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
package-lock.json

# Visual Studio 6 build log
*.plg
Expand Down
19 changes: 19 additions & 0 deletions Tricycle.UI.macOS/Tricycle.UI.macOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
<HttpClientHandler>HttpClientHandler</HttpClientHandler>
<XamMacArch></XamMacArch>
<AOTMode>None</AOTMode>
<CustomCommands>
<CustomCommands>
<Command>
<type>AfterBuild</type>
<command>npm i</command>
<workingdir>${ProjectDir}</workingdir>
</Command>
<Command>
<type>AfterBuild</type>
<command>rm -f Tricycle.dmg</command>
<workingdir>${TargetDir}</workingdir>
</Command>
<Command>
<type>AfterBuild</type>
<command>npm run appdmg dmg/config.json bin/Release/Tricycle.dmg</command>
<workingdir>${ProjectDir}</workingdir>
</Command>
</CustomCommands>
</CustomCommands>
</PropertyGroup>
<ItemGroup>
<Reference Include="netstandard" />
Expand Down
3 changes: 3 additions & 0 deletions Tricycle.UI.macOS/dmg/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Tricycle.UI.macOS/dmg/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions Tricycle.UI.macOS/dmg/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "Tricycle",
"background": "background.png",
"contents": [
{ "x": 410, "y": 344, "type": "link", "path": "/Applications" },
{ "x": 155, "y": 344, "type": "file", "path": "../bin/Release/Tricycle.app" }
],
"window": {
"size": {
"width": 570,
"height": 480
}
}
}
16 changes: 16 additions & 0 deletions Tricycle.UI.macOS/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "tricycle.ui.macos",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"appdmg": "^0.6.0"
},
"scripts": {
"appdmg": "node_modules/.bin/appdmg",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

0 comments on commit 93725a2

Please sign in to comment.