File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 9393
9494 - name : Build HeidiSQL (macOS)
9595 if : ${{ matrix.operating-system == 'macos-latest' }}
96- run : |
97- echo Building for macOS
98- lazbuild -B --bm=Release heidisql.lpi
99- mkdir -p ./out/macos
100- mv -v ./out/heidisql ./out/macos/heidisql
96+ run : make build-macos
10197
10298 - name : Upload binaries macOS
10399 if : ${{ matrix.operating-system == 'macos-latest' && matrix.lazarus-versions == 'stable' }}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ BIN := ./out/heidisql
88BINGTK := ./out/gtk2/heidisql
99BINQT5 := ./out/qt5/heidisql
1010BINQT6 := ./out/qt6/heidisql
11+ BINMACOS := ./out/macos/heidisql
1112
1213# Make shell magic to get version from somewhere
1314# VERSION := shell magic
@@ -23,14 +24,14 @@ endif
2324
2425VERSION := $(shell echo $(tag ) | sed "s/v//")
2526
26- .PHONY : all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 build-qt6 run-qt6 deb-package tar-gtk2 tar-qt5 tar-qt6
27+ .PHONY : all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 build-qt6 run-qt6 build-macos deb-package tar-gtk2 tar-qt5 tar-qt6
2728
2829all : clean build-gtk2 build-qt5 build-qt6 deb-package tar-gtk2 tar-qt5 tar-qt6
2930
3031clean :
3132 @echo " === Cleaning"
3233 @rm -rf ./bin/lib/x86_64-linux/*
33- @rm -f ./out/gtk2/* ./out/qt5/* ./out/qt6/*
34+ @rm -f ./out/gtk2/* ./out/qt5/* ./out/qt6/* ./out/macos/ *
3435 @rm -rf ./deb ./rpm ./tar ./dist
3536
3637copy-locale :
@@ -80,6 +81,12 @@ run-qt6: build-qt6
8081 @cp -v $(BINQT6 ) ./run/heidisql
8182 @./run/heidisql
8283
84+ build-macos :
85+ @echo " === Building macOS"
86+ $(LAZBUILD ) $(OPTS ) $(LPI )
87+ @mkdir -p ./out/macos
88+ @mv -v $(BIN ) $(BINMACOS )
89+
8390deb-package :
8491 @echo " === Creating debian package"
8592 rm -vrf deb
You can’t perform that action at this time.
0 commit comments