-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
58 lines (51 loc) · 2.01 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
image: Visual Studio 2017
install:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
init:
- set QTDIR=C:\Qt\5.12\msvc2017_64
- set PATH=%PATH%;C:\Qt\5.12\msvc2017_64\bin;
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
build_script:
- qmake Savestate2snes.pro -spec win32-msvc "CONFIG+=release"
- nmake
after_build:
- mkdir Savestate2Snes
- copy release\savestate2snes.exe Savestate2Snes\Savestate2snes.exe
- cd Savestate2Snes
- windeployqt.exe --no-translations --no-system-d3d-compiler --no-opengl-sw --no-opengl --no-webkit --no-patchqt --no-webkit2 --release Savestate2snes.exe
- del opengl32sw.dll
- del libEGL.dll
- del libGLESV2.dll
- del vc_redist.x64.exe
- copy /y ..\LICENSE-GPL3.txt LICENCE-GPL3.txt
- copy /y ..\README.md Readme.txt
- xcopy /e ..\Patches Patches\ /r
- mkdir i18n
- lrelease ..\Savestate2snes.pro
- xcopy /y ..\Translations\savestate2snes_fr.qm i18n
- xcopy /y ..\Translations\savestate2snes_de.qm i18n
- xcopy /y ..\Translations\savestate2snes_sv.qm i18n
- xcopy /y ..\Translations\savestate2snes_nl.qm i18n
- copy /y ..\icon64x64.png icone.png
- copy ..\qusb2snesapp.json qusb2snesapp.json
- cd ..
- appveyor DownloadFile https://github.com/Skarsnik/snesclassicstuff/releases/download/serverstuffmod_v1/serverstuff.hmod -FileName serverstuff.hmod
- copy serverstuff.hmod Savestate2Snes\
- 7z a Savestate2Snes-%APPVEYOR_REPO_TAG_NAME%.7z Savestate2Snes
artifacts:
- path: Savestate2Snes-$(APPVEYOR_REPO_TAG_NAME).7z
name: package
- path: Savestate2Snes\Savestate2snes.exe
name: executable
deploy:
description: 'Automated deployment'
provider: GitHub
auth_token:
secure: JF5Ki0Bz+mvMrqw5k0u7273c8GsUAqMwe/P7ts5PKLR+G7InkGqkvTqlAZb6GDGv
artifact: release\Savestate2snes, Savestate2Snes-$(APPVEYOR_REPO_TAG_NAME).7z
draft: true
prerelease: false
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true