Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Mar 25, 2018
1 parent e867acd commit 68638a4
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions win-deploy-qt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,10 @@ 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" (
MOVE /Y "%_APP_DIR%\qml\translations" "%_APP_DIR%\languages"
) ELSE (
IF EXIST "%_APP_DIR%\translations" (
CD /D "%_APP_DIR%"
REN "translations" "languages"
)
)
IF EXIST "%_APP_DIR%\plugins\platforms" (
IF EXIST "%_APP_DIR%\plugins\platforms\qwindowsd.dll" (
COPY /Y "%_QT_DIR%\plugins\platforms\qdirect2dd.dll" "%_APP_DIR%\plugins\platforms\qdirect2dd.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qminimald.dll" "%_APP_DIR%\plugins\platforms\qminimald.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qoffscreend.dll" "%_APP_DIR%\plugins\platforms\qoffscreend.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qwebgld.dll" "%_APP_DIR%\plugins\platforms\qwebgld.dll"
)
IF EXIST "%_APP_DIR%\plugins\platforms\qwindows.dll" (
COPY /Y "%_QT_DIR%\plugins\platforms\qdirect2d.dll" "%_APP_DIR%\plugins\platforms\qdirect2d.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qminimal.dll" "%_APP_DIR%\plugins\platforms\qminimal.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qoffscreen.dll" "%_APP_DIR%\plugins\platforms\qoffscreen.dll"
COPY /Y "%_QT_DIR%\plugins\platforms\qwebgl.dll" "%_APP_DIR%\plugins\platforms\qwebgl.dll"
)
IF EXIST "%_APP_DIR%\qml\translations" MOVE /Y "%_APP_DIR%\qml\translations" "%_APP_DIR%"
IF EXIST "%_APP_DIR%\translations" (
CD /D "%_APP_DIR%"
REN "translations" "languages"
)
IF %ERRORLEVEL% NEQ 0 ECHO Something wrong happened, deploying process aborted && GOTO Fin
SET "_CONF_FILE=%_APP_DIR%\qt.conf"
Expand Down

0 comments on commit 68638a4

Please sign in to comment.