Skip to content

Commit f8e9f86

Browse files
committed
Update build.bat
1 parent b40a6e6 commit f8e9f86

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

build.bat

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ set GOOS=%1
44
set GOARCH=%2
55
set EXT=
66

7-
if "%GOOS%" == "" (
8-
FOR /F "delims=" %%i IN ('go env GOOS') DO set GOOS=%%i
9-
)
10-
11-
if "%GOARCH%" == "" (
12-
FOR /F "delims=" %%i IN ('go env GOARCH') DO set GOARCH=%%i
13-
)
14-
15-
16-
177
if "%GOOS%" == "windows" (
188
set EXT=.exe
199
)
@@ -22,7 +12,7 @@ echo Building from .\src\ to .\bin\portables\GoFileEncoder_portable_%GOOS%_%GOAR
2212

2313
mkdir .\bin\portables\
2414

25-
rsrc -arch=%GOARCH% -ico icons\icon_16.ico,icons\icon_32.ico,icons\icon_64.ico,icons\icon_128.ico,icons\icon_256.ico -o .\pkg\rsrc.syso
15+
rsrc -arch=%GOARCH% -ico icons\icon_16.ico,icons\icon_32.ico,icons\icon_64.ico,icons\icon_128.ico,icons\icon_256.ico -o .\src\rsrc.syso
2616

2717
go-bindata -pkg assets -o assets/bindata.go LICENSE
28-
go build -o .\bin\portables\GoFileEncoder_portable_%GOOS%_%GOARCH%%EXT% .\pkg\
18+
go build -o .\bin\portables\GoFileEncoder_portable_%GOOS%_%GOARCH%%EXT% .\src\

0 commit comments

Comments
 (0)