33 lines
998 B
Batchfile
33 lines
998 B
Batchfile
|
|
@echo off
|
||
|
|
rem Build the Windows release and copy the runnable bundle to .\dist\
|
||
|
|
rem (ASCII only: .bat files are read with the OEM codepage.)
|
||
|
|
setlocal
|
||
|
|
|
||
|
|
set FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
|
||
|
|
set PUB_HOSTED_URL=https://pub.flutter-io.cn
|
||
|
|
set PATH=E:\flutter\bin;%PATH%
|
||
|
|
|
||
|
|
if exist E:\cmake-lv\bin\cmk2.exe (
|
||
|
|
set FLUTTER_CMAKE_PATH=E:\cmake-lv\bin\cmk2.exe
|
||
|
|
) else (
|
||
|
|
echo [warn] renamed CMake not found: E:\cmake-lv\bin\cmk2.exe
|
||
|
|
echo [warn] if a transparent-encryption DLP is installed, run scripts\setup-cmake.bat first.
|
||
|
|
)
|
||
|
|
|
||
|
|
cd /d "%~dp0.."
|
||
|
|
rem --no-tree-shake-icons: bundle the full Material icon font so newly used
|
||
|
|
rem icons are always present (avoids stale/blank icons after incremental builds).
|
||
|
|
call flutter build windows --release --no-tree-shake-icons
|
||
|
|
if errorlevel 1 (
|
||
|
|
echo Build failed.
|
||
|
|
exit /b 1
|
||
|
|
)
|
||
|
|
|
||
|
|
if exist dist rmdir /s /q dist
|
||
|
|
mkdir dist
|
||
|
|
xcopy /e /i /y /q "build\windows\x64\runner\Release\*" "dist\" >nul
|
||
|
|
|
||
|
|
echo.
|
||
|
|
echo Build OK: dist\sequence_diagram.exe
|
||
|
|
endlocal
|