-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathbuild-win.bat
More file actions
29 lines (23 loc) · 733 Bytes
/
build-win.bat
File metadata and controls
29 lines (23 loc) · 733 Bytes
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
set appName=WindSend
cd flutter\wind_send
call flutter clean
if %errorlevel% equ 0 (
echo Clean Success!
) else (
echo Clean Failed!
pause
)
call flutter build windows --release
if %errorlevel% equ 0 (
echo Build Windows Success!
xcopy /s /y build\windows\x64\runner\Release ..\..\bin\%appName%-flutter-amd64-windows\
xcopy ..\..\README.md ..\..\bin\%appName%-flutter-amd64-windows\ /y
cd ..\..\bin
zip -r %appName%-flutter-client-amd64-windows.zip %appName%-flutter-amd64-windows
@REM move build\windows\runner\Release ..\..\bin\clipboard-flutter-amd64-windows
@REM cd ..\..\bin
@REM zip -r clipboard-flutter-amd64-windows.zip clipboard-flutter-amd64-windows
) else (
echo Build Windows Failed!
)
pause