Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Mar 22, 2018
1 parent 53b0e79 commit 3223db2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions win-deploy-qt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ IF /I "%4" == "" (
SET _DEP_PARAMS=--dir "%_APP_DIR%\qml" --libdir "%_APP_DIR%" --plugindir "%_APP_DIR%\plugins" --force --qmldir "%_QT_DIR%\qml" --compiler-runtime "%_EXE_FILE%"
)
SET "PATH=%_QT_DIR%\bin;%PATH%"
IF EXIST "%_APP_DIR%\plugins" RD /S /Q "%_APP_DIR%\plugins"
IF EXIST "%_APP_DIR%\qml" RD /S /Q "%_APP_DIR%\qml"
IF EXIST "%_APP_DIR%\translations" RD /S /Q "%_APP_DIR%\translations"
IF EXIST "%_APP_DIR%\languages" RD /S /Q "%_APP_DIR%\languages"
IF EXIST "%_APP_DIR%\Qt*.dll" DEL /F /Q "%_APP_DIR%\Qt*.dll"
IF EXIST "%_APP_DIR%\qt.conf" DEL /F /Q "%_APP_DIR%\qt.conf"
windeployqt %_DEP_PARAMS%
IF EXIST "%_APP_DIR%\qml\translations" (
IF EXIST "%_APP_DIR%\languages" RD /S /Q "%_APP_DIR%\languages"
MD "%_APP_DIR%\languages"
COPY /Y "%_APP_DIR%\qml\translations\*" "%_APP_DIR%\languages"
RD /S /Q "%_APP_DIR%\qml\translations"
Expand All @@ -29,7 +34,6 @@ IF EXIST "%_APP_DIR%\qml\translations" (
)
IF %ERRORLEVEL% NEQ 0 ECHO Something wrong happened, deploying process aborted && GOTO Fin
SET "_CONF_FILE=%_APP_DIR%\qt.conf"
IF EXIST "%_CONF_FILE%" DEL /F /Q "%_CONF_FILE%"
ECHO [Paths]>"%_CONF_FILE%"
ECHO Binaries=.>>"%_CONF_FILE%"
ECHO Libraries=.>>"%_CONF_FILE%"
Expand Down

0 comments on commit 3223db2

Please sign in to comment.