Skip to content

Commit 8f820d0

Browse files
Maintenance: Add build targets for making binary files
1 parent d3b54da commit 8f820d0

File tree

2 files changed

+58
-5
lines changed

2 files changed

+58
-5
lines changed

Makefile

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,44 @@
1-
.PHONY: test run interpreter pkg-darwin
1+
.PHONY: test run interpreter pkg-darwin zip hackage
22

33
ELECTRON=/Applications/Electron.app/Contents/MacOS/Electron
44

55
STACK=stack --stack-yaml=haskell/stack.yaml
66

7+
VERSION=0.1.0.0
8+
9+
######################################################################
10+
# Development targets
11+
712
test: interpreter
813
TESTING=1 $(ELECTRON) app
914
killall hyper-haskell-server
1015

1116
run: interpreter
1217
$(ELECTRON) app
1318

14-
#hyper:
15-
# cd haskell && stack exec ghci -- -isrc src/Hyper.hs
16-
1719
interpreter:
1820
$(STACK) build
1921

22+
23+
######################################################################
24+
# Release targets
25+
26+
DIR_DARWIN=build/HyperHaskell-darwin-x64
27+
2028
pkg-darwin:
21-
mkdir -p build && electron-packager app --out=build/ --platform=darwin --icon=resources/icons/icon.icns
29+
mkdir -p build && electron-packager app \
30+
--out=build/ --overwrite \
31+
--platform=darwin --icon=resources/icons/icon.icns \
32+
&& rm $(DIR_DARWIN)/LICENSE \
33+
&& cp resources/LICENSE.electron.txt $(DIR_DARWIN)/LICENSE.electron.txt \
34+
&& rm $(DIR_DARWIN)/version
35+
36+
zip:
37+
cd $(DIR_DARWIN) && zip -r ../HyperHaskell-v$(VERSION)-darwin-x64.zip *
38+
39+
hackage:
40+
$(STACK) sdist \
41+
&& $(STACK) upload haskell \
42+
&& $(STACK) upload haskell/hyper-extra \
43+
&& $(STACK) upload haskell/hyper-haskell-server
44+

resources/LICENSE.electron.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
HyperHaskell was built with the
2+
3+
Electron framework
4+
http://electron.atom.io/
5+
6+
The Electron framework is subject to the following license:
7+
8+
Copyright (c) 2014 GitHub Inc.
9+
10+
Permission is hereby granted, free of charge, to any person obtaining
11+
a copy of this software and associated documentation files (the
12+
"Software"), to deal in the Software without restriction, including
13+
without limitation the rights to use, copy, modify, merge, publish,
14+
distribute, sublicense, and/or sell copies of the Software, and to
15+
permit persons to whom the Software is furnished to do so, subject to
16+
the following conditions:
17+
18+
The above copyright notice and this permission notice shall be
19+
included in all copies or substantial portions of the Software.
20+
21+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28+
29+
Note that this license does NOT apply to the HyperHaskell software
30+
in its entirety, only to Electron framework contained within it.

0 commit comments

Comments
 (0)