Commit 039cc98d authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert
Browse files

Enhance win build script

parent ce6a3f40
Param(
[string]$buildtype = "preextracted"
)
Write-Output "Building Windows Decker"
& yarn install
& yarn run webpack --mode production
......@@ -8,4 +11,12 @@ Copy-Item -Force node_modules/reveal.js/plugin/notes/notes.js resource/support/n
New-Item -ItemType directory -Force -Path resource/support/print
Copy-Item -Force node_modules/reveal.js/css/print/paper.css resource/support/print/paper.css
Copy-Item -Force node_modules/reveal.js/css/print/pdf.css resource/support/print/pdf.css
& stack build -j4 --flag decker:preextractedresources
if($buildtype -eq "preextracted"){
Write-Output "Building for preextracted resources"
& stack build -j4 --flag decker:preextractedresources
} else {
Write-Output "Building standalone binary"
& stack build -j4
}
Write-Output "Building Windows Decker Standalone Binary"
& yarn install
& yarn run webpack --mode production
Copy-Item -Recurse -Force node_modules/reveal.js-menu resource/support/
New-Item -ItemType directory -Force -Path resource/support/notes
Copy-Item -Force node_modules/reveal.js/plugin/notes/notes.html resource/support/notes/notes.html
Copy-Item -Force node_modules/reveal.js/plugin/notes/notes.js resource/support/notes/notes.js
New-Item -ItemType directory -Force -Path resource/support/print
Copy-Item -Force node_modules/reveal.js/css/print/paper.css resource/support/print/paper.css
Copy-Item -Force node_modules/reveal.js/css/print/pdf.css resource/support/print/pdf.css
& stack build -j4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment