Skip to content

Commit bce3caf

Browse files
committed
Add package command
1 parent e3229b1 commit bce3caf

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode/*
22
serviceAccount.json
33
backend/dist/*
4-
CryptoMail
4+
CryptoMail
5+
CryptoMail.app

Icon.png

8.68 KB
Loading

Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ install:
22
# Go Instalation
33
go install google.golang.org/protobuf/cmd/[email protected]
44
go install google.golang.org/grpc/cmd/[email protected]
5+
go install fyne.io/fyne/v2/cmd/fyne@latest
56

67
# Typescript Installation
78
cd frontend&&npm install&&cd ..
@@ -28,4 +29,19 @@ build:
2829

2930
# Cleanup
3031
rm -rf backend/dist
31-
rm backend/CryptoMail
32+
rm backend/CryptoMail
33+
34+
package:
35+
ifeq "$(OS)" "Windows_NT"
36+
fyne package -os darwin -executable CryptoMail
37+
else
38+
ifeq "$(shell uname -s)" "Linux"
39+
fyne package -os linux -executable CryptoMail
40+
endif
41+
42+
ifeq "$(shell uname -s)" "Darwin"
43+
fyne package -os darwin -executable CryptoMail
44+
endif
45+
endif
46+
47+
rm CryptoMail

0 commit comments

Comments
 (0)