Skip to content

Commit

Permalink
Added an AppVeyor CI build for a Launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Dec 26, 2019
1 parent b53d49f commit 7a0dcba
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,6 @@ HardcodedGraphicsData

/LunaLUA-bin.zip
/LunaLoader-bin.zip
/SMBX-Launcher.zip

*.bak
31 changes: 31 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
46 changes: 46 additions & 0 deletions build_launcher_2017.bat
Original file line number Diff line number Diff line change
@@ -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 ..
18 changes: 18 additions & 0 deletions deploy-launcher.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7a0dcba

Please sign in to comment.