-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (18 loc) · 1.01 KB
/
Makefile
File metadata and controls
21 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-include .env
VERSION ?= 0
## publish: creates a 64bit release build
.PHONY: publish
publish:
@sed -i.bak "s|public const string SENTRY_DSN = \".*\";|public const string SENTRY_DSN = \"$(SENTRY_DSN)\";|" vimage/Program.cs
dotnet publish vimage -c Release -r win-x64 /property:Version=$(VERSION)
dotnet publish vimage_settings -c Release -r win-x64 /property:Version=$(VERSION)
@sed -i "s|public const string SENTRY_DSN = \".*\";|public const string SENTRY_DSN = \"\";|" vimage/Program.cs
@rm -f vimage/Program.cs.bak
## publish-x86: creates a 32bit release build
.PHONY: publish-x86
publish-x86:
@sed -i.bak "s|public const string SENTRY_DSN = \".*\";|public const string SENTRY_DSN = \"$(SENTRY_DSN)\";|" vimage/Program.cs
dotnet publish vimage -c Release -r win-x86 /property:Version=$(VERSION)
dotnet publish vimage_settings -c Release -r win-x86 /property:Version=$(VERSION)
@sed -i "s|public const string SENTRY_DSN = \".*\";|public const string SENTRY_DSN = \"\";|" vimage/Program.cs
@rm -f vimage/Program.cs.bak