-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest.bat
61 lines (45 loc) · 1.01 KB
/
test.bat
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
set OPT=%1
set VERSION=%2
if ["%OPT%"]==["clean"] set CLEAN=1
if ["%OPT%"]==["clean-src"] set CLEAN=1
if ["%OPT%"]==["src"] set SRC=1
if ["%OPT%"]==["clean-src"] set SRC=1
if ["%OPT%"]==["quick"] set QUICK=1
if [%VERSION%]==[] set VERSION=1.0.0
if defined CLEAN (
echo #
echo # Cleaning %TEMP%\co.touchify.testsfx
rmdir /S /Q "%TEMP%\co.touchify.testsfx"
)
if not defined QUICK (
echo #
echo # Building SFX and bundler
if defined SRC (
bash ./build.sh
) else (
go build -o test/sfx.exe ^
-tags verbose ^
./base
go build -o test/bundler.exe ^
./bundler
)
)
echo #
echo # Bundling SFX...
if defined SRC (
set BUNDLER=bin\x64\bundler.exe
copy bin\x64\sfxv.exe test\sfx.exe
) else (
set BUNDLER=test\bundler.exe
)
%BUNDLER% -v ^
-exe test/sfx.exe ^
-dir project ^
-compress 9 ^
-id co.touchify.testsfx ^
-version %VERSION% ^
-args "--sfx"
echo #
echo # Running SFX...
test\sfx.exe --test