-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
justfile
50 lines (37 loc) · 1.44 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ELECTRON := "electron"
STACK := "stack --stack-yaml=haskell/stack.yaml --install-ghc"
VERSION := "0.2.3.0"
######################################################################
# Development targets
test:
just build
TESTING=1 {{ELECTRON}} app
killall hyper-haskell-server
run:
just build
{{ELECTRON}} app
build:
cabal build all
######################################################################
# Release targets
DIR_DARWIN := "build/HyperHaskell-darwin-x64"
DIR_WIN32 := "build\\HyperHaskell-win32-x64"
pkg-darwin:
mkdir -p build && electron-packager app \
--out=build/ --overwrite \
--platform=darwin --icon=resources/icons/icon.icns \
--extend-info=resources/macOS-Info.plist \
&& rm {{DIR_DARWIN}}/LICENSE \
&& cp resources/LICENSE.electron.txt {{DIR_DARWIN}}/LICENSE.electron.txt \
&& rm {{DIR_DARWIN}}/version
pkg-win32:
cmd /C "(if not exist build md build) && (electron-packager app --out=build\ --overwrite --platform=win32 --icon=resources\icons\icon.ico) && (del $(DIR_WIN32)\LICENSE) && (echo F|xcopy resources\LICENSE.electron.txt $(DIR_WIN32)\LICENSE.electron.txt) && (del $(DIR_WIN32)\version)"
zip-darwin:
cd {{DIR_DARWIN}} && zip -r ../HyperHaskell-v{{VERSION}}-darwin-x64.zip *
zip-win32:
cmd /C "(cd {{DIR_WIN32}} && (7z a -tzip ..\HyperHaskell-v{{VERSION}}-win32-x64.zip .\)"
hackage:
cabal sdist \
&& cabal upload haskell/hyper \
&& cabal upload haskell/hyper-extra \
&& cabal upload haskell/hyper-haskell-server