-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
39 lines (27 loc) · 1.35 KB
/
Makefile
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
VERSION=0.3
BUILDNO=6
all: dist dist/README.html dist/screenshot.png dist/Icon.png dist/linux_x64/EncryptedNotepad2.tar.xz dist/windows/EncryptedNotepad2.exe dist/android/EncryptedNotepd2.aab
true
clean:
rm -rf dist
dist:
mkdir -p dist
dist/linux_x64:
mkdir -p dist/linux_x64
dist/linux_x64/EncryptedNotepad2.tar.xz: *.go
fyne package -os linux -icon Icon.png -tags osusergo,netgo -release && mkdir -p dist/linux_x64 && mv EncryptedNotepad2.tar.xz dist/linux_x64/
dist/windows:
mkdir -p dist/windows
dist/windows/EncryptedNotepad2.exe: *.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc fyne package -os windows -icon Icon.png -release -appID com.encryptednotepad2 && mkdir -p dist/windows && mv EncryptedNotepad2.exe dist/windows/
dist/android:
mkdir -p dist/android
dist/android/EncryptedNotepd2.aab: *.go
rm -f EncryptedNotepad2.aab ; fyne release -os android/arm64 --appID com.encryptednotepad2 --icon Icon.png --appVersion $(VERSION) --appBuild $(BUILDNO) --keyStore en2.keystore --keyName en2 && mkdir -p dist/android && mv EncryptedNotepad2.aab dist/android/
dist/Icon.png: Icon.png
cp Icon.png dist/
dist/README.html: README.md
pandoc --verbose -f markdown -t html5 --standalone --css=pandoc.css --metadata title="" README.md -o dist/README.html
cp pandoc.css dist/
dist/screenshot.png: screenshot.png
cp screenshot.png dist/