diff --git a/.gitignore b/.gitignore index a5e870227..b8a886fd9 100644 --- a/.gitignore +++ b/.gitignore @@ -256,5 +256,6 @@ HardcodedGraphicsData /LunaLUA-bin.zip /LunaLoader-bin.zip +/SMBX-Launcher.zip *.bak \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 87f1e29f5..89ed35bae 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,6 +34,37 @@ - provider: Environment name: WohlnetFTP +- + version: 0.7.3.1.{build} + branches: + only: + - master + skip_tags: true + + os: Visual Studio 2017 + configuration: Release + + clone_depth: 1 + + clone_folder: C:\_Repos\LunaLUA + + install: + - cmd: git submodule init + - cmd: git submodule update + + build: + - cmd: build_launcher_2017.bat + + after_build: + - cmd: deploy-full.bat nopause + + artifacts: + - path: SMBX-Launcher.zip + + deploy: + - provider: Environment + name: WohlnetFTP + - version: 0.7.3.1.{build} branches: diff --git a/build_launcher_2017.bat b/build_launcher_2017.bat new file mode 100644 index 000000000..3119fccea --- /dev/null +++ b/build_launcher_2017.bat @@ -0,0 +1,46 @@ + +call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 + +set QT_PATH=C:\Qt\5.13.2\msvc2017\bin\ +set JOM=C:\Qt\Tools\QtCreator\bin\jom + +if not exist build-smbx-launcher\NUL md build-smbx-launcher +cd build-smbx-launcher +%QT_PATH%\qmake -spec win32-msvc CONFIG+=Win32 CONFIG+=release CONFIG-=debug ../LunadllNewLauncher/SMBXLauncher/SMBXLauncher.pro +%JOM% /J 4 + +if exist build-smbx-launcher\NUL rd /S /Q deploy +md deploy +copy release\SMBXLauncher.exe deploy +cd deploy +%QT_PATH%\windeployqt --release SMBXLauncher.exe + +rem ----------------------- A CLEAN-UP ----------------------- + +rem Bearer is for audio streaming, unneeded +rd /S /Q bearer +rem Print support is unused +rd /S /Q printsupport +rem Position is unused +rd /S /Q position +rem Icon engines are unused +rd /S /Q iconengines +rem Unneeded Image formats support for Qt itself for icons and pixmaps, QtWebEngine has own that works +del imageformats\qgif.dll +del imageformats\qicns.dll +del imageformats\qjpeg.dll +del imageformats\qsvg.dll +del imageformats\qtga.dll +del imageformats\qtiff.dll +del imageformats\qwbmp.dll +del imageformats\qwebp.dll +rem D3D Compiler is unneeded, it's already in a system +del D3Dcompiler_*.dll +rem Serial port is unused +del Qt5SerialPort.dll +rem SVG for Qt itself is unused +del Qt5Svg.dll +rem ----------------------- A CLEAN-UP ----------------------- +cd .. + +cd .. diff --git a/deploy-launcher.bat b/deploy-launcher.bat new file mode 100644 index 000000000..4f3720e69 --- /dev/null +++ b/deploy-launcher.bat @@ -0,0 +1,18 @@ +@echo off + +SET SEVENZIP=C:\Program Files\7-Zip +IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=C:\Program Files (x86)\7-Zip +IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=C:\Programs\7-Zip + +set CurDir=%CD% + +set DeployDir=%CurDir%\build-smbx-launcher\Deploy + +echo Packing SMBX Launcher... +"%SEVENZIP%\7z" a -tzip "SMBX-Launcher" %DeployDir%\*.* %DeployDir%\imageformats %DeployDir%\launcher %DeployDir%\platforms %DeployDir%\resources %DeployDir%\styles %DeployDir%\translations > NUL + +echo. +echo "Everything is completed!" +echo. + +if not "%1"=="nopause" pause