Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
decker
decker
Commits
3af7d9fe
Commit
3af7d9fe
authored
Jan 11, 2019
by
Jan-Philipp Stauffert
Browse files
Add first build script
parent
833ee734
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/build.ps1
0 → 100644
View file @
3af7d9fe
Write-Output
"Building Windows Decker"
&
yarn
install
&
yarn
run
webpack
--mode
production
Copy-Item
-Recurse
-Force
node_modules/reveal.js-menu
resource/support/
#Copy-Item -Recurse -Force node_modules/reveal.js/plugin/notes 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
$binpath
=
(
Join-Path
(
$
(
stack
path
|
Select-String
-Pattern
"local-install-root"
)
-split
" "
)[
1
]
"bin\decker.exe"
)
Copy-Item
$binpath
.
$version
=
Get-Content
.
\package.yaml
|
Select-String
-Pattern
"version: "
$version
=
$version
-replace
"\s+"
,
" "
$version
=
(
$version
-split
" "
)[
1
]
Write-Output
$version
>
version.txt
Compress-Archive
-Force
-Path
.
\resource
-CompressionLevel
Fastest
-DestinationPath
resource
src-win/System/Decker/OS.hs
View file @
3af7d9fe
...
...
@@ -6,6 +6,7 @@ module System.Decker.OS
)
where
import
Common
import
Data.List
import
System.Environment
import
System.FilePath
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment