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
ce6a3f40
Commit
ce6a3f40
authored
Jan 17, 2019
by
Jan-Philipp Stauffert
Browse files
Split windows building into multiple scripts
parent
3af7d9fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
bin/build.ps1
View file @
ce6a3f40
...
...
@@ -2,21 +2,10 @@ 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
&
stack
build
-j4
--flag
decker:preextractedresources
bin/win-build-standalone.ps1
0 → 100644
View file @
ce6a3f40
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
bin/win-prepare-package.ps1
0 → 100644
View file @
ce6a3f40
$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/Project.hs
View file @
ce6a3f40
...
...
@@ -203,7 +203,7 @@ fileIsNewer a b = do
-- Both arguments are expected to be absolute pathes.
makeRelativeTo
::
FilePath
->
FilePath
->
FilePath
makeRelativeTo
dir
file
=
let
(
d
,
f
)
=
removeCommonPrefix
(
dir
,
file
)
let
(
d
,
f
)
=
removeCommonPrefix
(
normalise
dir
,
normalise
file
)
in
normalise
$
invertPath
d
</>
f
invertPath
::
FilePath
->
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