-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
26 lines (25 loc) · 1.34 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
version = "TechAlpha-v0.4.3"
build: clean
@C:\1Coding\GDScript\godot.exe --quiet --export-debug "Windows Desktop"
clean:
@powershell write-host " "
@powershell write-host -fore Yellow "Start cleaning..."
@if exist "./export/windows" del /s /q .\export\windows
@if exist "./export/web" del /s /q .\export\web
@powershell write-host -fore Green "Cleaning finished!"
@powershell write-host ""
pack: build
@powershell write-host " "
@powershell write-host -fore Yellow "Start packaging process..."
@if exist "./export/windows/UnknownJourney-TechAlpha.zip" del /s /q .\export\windows\UnknownJourney-TechAlpha.zip
@move .\export\windows\UnknownJourney-TechAlpha.exe .
@move .\export\windows\UnknownJourney-TechAlpha.console.exe .
@tar.exe -a -c -f UnknownJourney-TechAlpha.zip UnknownJourney-TechAlpha.exe UnknownJourney-TechAlpha.console.exe
@powershell write-host -fore Yellow "Package created, clean up files ..."
@move .\UnknownJourney-TechAlpha.zip .\export\windows
@del /s /q .\UnknownJourney-TechAlpha.exe
@del /s /q .\UnknownJourney-TechAlpha.console.exe
@powershell write-host -fore Yellow "Create new Github-Release for version: $(version)..."
@gh release create $(version) -F .\changelog.md '.\export\windows\UnknownJourney-TechAlpha.zip#Windows'
@powershell write-host -fore Green "Packaging successfully finished!"
@powershell write-host " "