-
Notifications
You must be signed in to change notification settings - Fork 2
Build TyLauncher on Windows
- The official TyLauncher is build with Qt 5.5 and Visual Studio C++ 2013
- Compiler toolkit must be same for Qt and TyLauncher
- Download and install Qt libraries 5.5.0 for Windows (VS 2013, 633 M)
- Download and install Visual Studio C++ 2013 Express
After the standard installation append the following line to your PATH
environment variable: ;C:\Qt\Qt5.5.0\5.5\msvc2013\bin;C:\Qt\Qt5.5.0\Tools\QtCreator\bin
- clone the repository:
git clone https://github.com/luckytianyiyan/TyLauncher.git
- change into the local copy of the repository:
cd TyLauncher
- create a new folder e.g. build and change into this directory:
mkdir build && cd build
- generate the Makefiles in the build directory:
qmake ../src -r -spec win32-msvc2013
- Open Visual Studio Command Prompt (2013) via start menu
- Execute
jom
in the build directory:jom
- run
after-build
script in the build directory:call ..\scripts\after-build.bat ../src %cd%
- run
packaging
script in the build directory:
- build 32 bit:
SET QTDIR=D:\Qt\Qt5.5.0\5.5\msvc2013 call ..\scripts\packaging.bat ../src %cd% TyLauncher C:/Windows/System32 ```
- build 64 bit:
SET QTDIR=D:\Qt\Qt5.5.0\5.5\msvc2013_64 call ..\scripts\packaging.bat ../src %cd% TyLauncher C:/Windows/SysWOW64
open src/TyLauncher.pro
In Qt Creator Projects
- Select
debug
build configuration.
- Add
after-build
Script
Add a Build Steps - Custom Process Steps
-
Commend:
%{sourceDir}\..\scripts\after-build.bat
-
Arguments:
%{sourceDir} %{buildDir}
-
Working directory:
%{buildDir}
- Select
release
build configuration.
- Add
after-build
Script
The same as the Step.1.2.
This step is optional
- Select
release
build configuration.
- Add
Packaging
build configuration
clone release
build configuration.
- Add
after-build-packaging
Script
Add a Build Steps - Custom Process Steps
-
Commend:
%{sourceDir}\..\scripts\packaging.bat
-
Arguments:
%{sourceDir} %{buildDir} %{CurrentProject:Name} [windows root]
if you packaging x86 application.
[windows root]
is likeC:/Windows/System32
%{sourceDir} %{buildDir} %{CurrentProject:Name} C:/Windows/System32
or x64 application.
[windows root]
is likeC:/Windows/SysWOW64
%{sourceDir} %{buildDir} %{CurrentProject:Name} C:/Windows/SysWOW64
-
Working directory:
%{buildDir}
TyLauncher directory looks like this:
│ icudt54.dll
│ icuin54.dll
│ icuuc54.dll
│ msvcp120.dll
│ msvcr120.dll
│ Qt5Core.dll
│ Qt5Gui.dll
│ Qt5Network.dll
│ Qt5Svg.dll
│ Qt5Widgets.dll
│ TyLauncher.exe
│
├─bearer
│ qgenericbearer.dll
│ qnativewifibearer.dll
│
├─imageformats
│ qdds.dll
│ qgif.dll
│ qicns.dll
│ qico.dll
│ qjp2.dll
│ qjpeg.dll
│ qmng.dll
│ qsvg.dll
│ qtga.dll
│ qtiff.dll
│ qwbmp.dll
│ qwebp.dll
│
├─language
│ zh_CN.qm
│
├─platforms
│ qwindows.dll
│
└─theme
oldTheme.qss
One Dark.qss
One Light.qss