3
3
GITCOMMIT := $(shell git rev-parse --short HEAD)
4
4
KLAYOUT_VERSION := $(shell source version.sh && echo $$KLAYOUT_VERSION)
5
5
ifndef PYTHON_VERSION
6
- PYTHON_VERSION := B37
6
+ PYTHON_VERSION := HB38
7
7
endif
8
8
ifndef MACOS_VERSION
9
- MACOS_VERSION := HighSierra
9
+ MACOS_VERSION := Catalina
10
10
endif
11
11
12
12
.ONESHELL :
@@ -15,11 +15,11 @@ default: help
15
15
16
16
help :
17
17
@echo " For Mac OS only"
18
- @echo " make build PYTHON_VERSION=B37 "
19
- @echo " make deploy PYTHON_VERSION=B37 "
18
+ @echo " make build PYTHON_VERSION=HB38 "
19
+ @echo " make deploy PYTHON_VERSION=HB38 "
20
20
@echo " make test MACOS_VERSION=HighSierra"
21
- @echo " Valid Mac OS Versions: [Yosemite, ElCapitan, Sierra, HighSierra]"
22
- @echo " Valid Python Version: [nil, Sys, B37 ]"
21
+ @echo " Valid Mac OS Versions: [Yosemite, ElCapitan, Sierra, HighSierra, Mojave, Catalina ]"
22
+ @echo " Valid Python Version: [nil, Sys, HB38 ]"
23
23
24
24
build :
25
25
@echo " Building for Mac $( GITCOMMIT) "
@@ -29,30 +29,36 @@ build:
29
29
deploy :
30
30
@echo " Deploying 4 Mac $( GITCOMMIT) "
31
31
./build4mac.py -p $(PYTHON_VERSION ) -q Qt5Brew -y
32
-
32
+
33
33
test :
34
34
@echo " Testing 4 Mac $( GITCOMMIT) "
35
- qt5 .pkg.macos-$(MACOS_VERSION ) -release/klayout.app/Contents/MacOS/klayout -b -r test-pylib-script.py; \
36
- cd qt5 .build.macos-$(MACOS_VERSION ) -release; \
35
+ PIP_REQUIRE_VIRTUALENV= " false " HW-qt5Brew .pkg.macos-$(MACOS_VERSION ) -release-RsysPhb38 /klayout.app/Contents/MacOS/klayout -b -r test-pylib-script.py; \
36
+ cd qt5Brew .build.macos-$(MACOS_VERSION ) -release-RsysPhb38 ; \
37
37
ln -s klayout.app/Contents/MacOS/klayout klayout; \
38
38
export TESTTMP=testtmp; \
39
39
export TESTSRC=..; \
40
40
export DYLD_LIBRARY_PATH=.:db_plugins/:lay_plugins/; \
41
41
./ut_runner -h || true ; \
42
42
cd ..
43
43
44
+ dmg-template :
45
+ mkdir -p testtemplate/klayout.app
46
+ ./makeDMG4mac.py -p testtemplate -m -z -t klayoutDMGTemplate.dmg
47
+ cp -a klayoutDMGTemplate.dmg* macbuild/Resources/
48
+ rm -Rf testtemplate
49
+
44
50
dropbox-deploy :
45
51
@echo " Preparing for dropbox deployment $( MACOS_VERSION) $( GITCOMMIT) "
46
- mkdir -p deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) ; \
47
- pwd ; \
48
- ls -lah; \
49
- touch build.txt; \
50
- cp build.txt deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .log.txt; \
51
- hdiutil convert macbuild/Resources/klayoutDMGTemplate.dmg -format UDRW -o work-KLayout.dmg; \
52
- hdiutil resize -size 500m work-KLayout.dmg; \
53
- hdiutil attach work-KLayout.dmg - readwrite -noverify -quiet -mountpoint tempKLayout -noautoopen; \
54
- cp -a qt5 .pkg.macos-$(MACOS_VERSION ) -release/ tempKLayout/; \
55
- hdiutil detach tempKLayout; \
56
- hdiutil convert work-KLayout.dmg -format UDZO -imagekey zlib-level=9 -o deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg; \
57
- md5 -q deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg > deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg.md5; \
52
+ mkdir -p deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION )
53
+ pwd
54
+ ls -lah
55
+ touch build.txt
56
+ cp build.txt deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .log.txt
57
+ hdiutil convert macbuild/Resources/klayoutDMGTemplate.dmg -ov - format UDRW -o work-KLayout.dmg
58
+ hdiutil resize -size 500m work-KLayout.dmg
59
+ hdiutil attach - readwrite -noverify -quiet -mountpoint tempKLayout -noautoopen work-KLayout.dmg
60
+ cp -a HW-qt5Brew .pkg.macos-$(MACOS_VERSION ) -release-RsysPhb38 / tempKLayout/
61
+ hdiutil detach tempKLayout
62
+ hdiutil convert work-KLayout.dmg -ov - format UDZO -imagekey zlib-level=9 -o deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg
63
+ md5 -q deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg > deploy/$(MACOS_VERSION ) /$(PYTHON_VERSION ) /$(KLAYOUT_VERSION ) /qt5.pkg.macos-$(MACOS_VERSION ) -$(PYTHON_VERSION ) -release-$(KLAYOUT_VERSION ) -$(GITCOMMIT ) .dmg.md5
58
64
rm work-KLayout.dmg
0 commit comments