forked from yuk7/wsldl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
32 lines (29 loc) · 1.8 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
os: Visual Studio 2019
build_script:
- call "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x64
- IF defined APPVEYOR_REPO_COMMIT ( SET VersionDefinition=/DSW_VER=L\"dev-%APPVEYOR_REPO_COMMIT:~0,7%\" )
- IF defined APPVEYOR_REPO_TAG_NAME ( SET VersionDefinition=/DSW_VER=L\"%APPVEYOR_REPO_TAG_NAME%\" )
- mkdir out
- cl /nologo /O2 /W4 /WX /Ob2 /Oi /Oy /Gs- /GF /Gy /Tc main.c /Fe:out\Launcher.exe Advapi32.lib Shell32.lib shlwapi.lib %VersionDefinition%
- FOR /D /r %%D in ("res/*") DO (
rc /nologo res\%%~nxD\res.rc &&
cl /nologo /O2 /W4 /WX /Ob2 /Oi /Oy /Gs- /GF /Gy /Tc main.c /Fe:out\%%~nxD.exe Advapi32.lib Shell32.lib shlwapi.lib res\%%~nxD\res.res %VersionDefinition%)
- ps: Compress-Archive -DestinationPath out\icons.zip -Path (Get-ChildItem -Path out -Exclude Launcher.exe)
- call "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x64_arm64
- mkdir out-arm64
- cl /nologo /O2 /W4 /WX /Ob2 /Oi /Oy /Gs- /GF /Gy /Tc main.c /Fe:out-arm64\Launcher_arm64.exe Advapi32.lib Shell32.lib shlwapi.lib %VersionDefinition%
- FOR /D /r %%D in ("res/*") DO (
rc /nologo res\%%~nxD\res.rc &&
cl /nologo /O2 /W4 /WX /Ob2 /Oi /Oy /Gs- /GF /Gy /Tc main.c /Fe:out-arm64\%%~nxD.exe Advapi32.lib Shell32.lib shlwapi.lib res\%%~nxD\res.res %VersionDefinition%)
- ps: Compress-Archive -DestinationPath out-arm64\icons_arm64.zip -Path (Get-ChildItem -Path out-arm64 -Exclude Launcher_arm64.exe)
artifacts:
- path: 'out\icons.zip'
- path: 'out\Launcher.exe'
- path: 'out-arm64\icons_arm64.zip'
- path: 'out-arm64\Launcher_arm64.exe'
deploy:
- provider: GitHub
auth_token:
secure: 30zYhu56OWBUmac85epZskJHKBlIMZ1fQ5N68zQ3eYzekuMulqoufur/TLeBoa6F
on:
appveyor_repo_tag: true # deploy on tag push only