2023-02-24 18:44:29 +08:00
|
|
|
|
|
|
|
SET PWD_PATH=%2
|
|
|
|
SET PRESET_PATH=%3
|
|
|
|
SET BUILDER_BIN_PATH=%4
|
|
|
|
SET QT_QML_FLUENT_PATH=%5
|
|
|
|
SET ANDROID=%6
|
|
|
|
SET LIBFILE_PATH=%7
|
|
|
|
|
|
|
|
echo "--------win_install-------"
|
|
|
|
echo %RUN_TYPE%
|
|
|
|
echo %PWD_PATH%
|
|
|
|
echo %PRESET_PATH%
|
|
|
|
echo %BUILDER_BIN_PATH%
|
|
|
|
echo %QT_QML_FLUENT_PATH%
|
|
|
|
echo "--------------------------"
|
|
|
|
|
2023-02-26 23:47:07 +08:00
|
|
|
copy /y %PWD_PATH%\FluentUI.h %BUILDER_BIN_PATH% & copy /y %PRESET_PATH%\* %BUILDER_BIN_PATH%\
|
2023-02-24 18:44:29 +08:00
|
|
|
|
|
|
|
if %ANDROID% == YES copy /y %LIBFILE_PATH% %BUILDER_BIN_PATH%
|
|
|
|
|
2023-04-04 00:18:39 +08:00
|
|
|
SET QMLPLUGINDUMP1_PATH=%QT_QML_FLUENT_PATH%\..\..\bin\qmlplugindump.exe
|
|
|
|
SET QMLPLUGINDUMP2_PATH=%QT_QML_FLUENT_PATH%\..\..\bin\qmlplugindump-qt6.exe
|
|
|
|
|
2023-02-24 18:44:29 +08:00
|
|
|
if %1 == SHARED (
|
|
|
|
echo running install to qtqml folder
|
2023-02-27 18:46:39 +08:00
|
|
|
del /s /q %PRESET_PATH%\plugins.qmltypes
|
2023-04-04 00:18:39 +08:00
|
|
|
if exist %QMLPLUGINDUMP1_PATH% (
|
|
|
|
%QMLPLUGINDUMP1_PATH% -nonrelocatable FluentUI 1.0 > %PRESET_PATH%\plugins.qmltypes
|
|
|
|
) else (
|
|
|
|
%QMLPLUGINDUMP2_PATH% -nonrelocatable FluentUI 1.0 > %PRESET_PATH%\plugins.qmltypes
|
|
|
|
)
|
2023-03-21 23:52:29 +08:00
|
|
|
rmdir /s /q %QT_QML_FLUENT_PATH% & md %QT_QML_FLUENT_PATH%
|
2023-02-24 18:44:29 +08:00
|
|
|
copy /y %BUILDER_BIN_PATH% %QT_QML_FLUENT_PATH%
|
2023-02-27 18:46:39 +08:00
|
|
|
xcopy %PRESET_PATH% %QT_QML_FLUENT_PATH% /s/e/i/y
|
2023-02-26 23:47:07 +08:00
|
|
|
cd %QT_QML_FLUENT_PATH%
|
2023-02-24 18:44:29 +08:00
|
|
|
)
|