-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
84 lines (80 loc) · 2.89 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: 0.4.0.4
environment:
matrix:
- IMAGE: 'Visual Studio 2022'
RUNTIME: 'win-x64'
- IMAGE: 'macOS'
RUNTIME: 'osx-x64'
- IMAGE: 'Ubuntu'
RUNTIME: 'linux-x64'
# this is ugly but it works mabye
build_script:
- if "%IMAGE%"=="Visual Studio 2022" (
dotnet restore StrayCatRunner/StrayCatRunner.csproj
)
- if "%IMAGE%"=="Visual Studio 2022" (
dotnet build StrayCatRunner/StrayCatRunner.csproj --configuration Release /p:DebugType=None
)
- if "%IMAGE%"=="Visual Studio 2022" (
dotnet publish StrayCatRunner/StrayCatRunner.csproj --configuration Release --runtime %RUNTIME% /p:PublishSingleFile=true /p:PublishTrimmed=true /p:SelfContained=true --output ./publish/
)
- if "%IMAGE%"=="Visual Studio 2022" (
xcopy /I /Y .\straycat_server.py .\publish\
)
- if "%IMAGE%"=="Visual Studio 2022" (
xcopy /I /Y .\straycat.py .\publish\
)
- if "%IMAGE%"=="Visual Studio 2022" (
7z a -r -tzip ./publish/StrayCatRunner_Windows.zip .\publish\*
)
- if "%IMAGE%"=="macOS" (
dotnet restore StrayCatRunner/StrayCatRunner.csproj
)
- if "%IMAGE%"=="macOS" (
dotnet build StrayCatRunner/StrayCatRunner.csproj --configuration Release /p:DebugType=None
)
- if "%IMAGE%"=="macOS" (
dotnet publish StrayCatRunner/StrayCatRunner.csproj --configuration Release --runtime %RUNTIME% /p:PublishSingleFile=true /p:PublishTrimmed=true /p:SelfContained=true --output ./publish_mac/
)
- if "%IMAGE%"=="macOS" (
xcopy /I /Y .\straycat_server.py .\publish_mac\
)
- if "%IMAGE%"=="macOS" (
xcopy /I /Y .\straycat.py .\publish_mac\
)
- if "%IMAGE%"=="macOS" (
7z a -r -tzip ./publish/StrayCatRunner_Mac.zip .\publish_mac\*
)
- if "%IMAGE%"=="Ubuntu" (
dotnet restore StrayCatRunner/StrayCatRunner.csproj
)
- if "%IMAGE%"=="Ubuntu" (
dotnet build StrayCatRunner/StrayCatRunner.csproj --configuration Release /p:DebugType=None
)
- if "%IMAGE%"=="Ubuntu" (
dotnet publish StrayCatRunner/StrayCatRunner.csproj --configuration Release --runtime %RUNTIME% /p:PublishSingleFile=true /p:PublishTrimmed=true /p:SelfContained=true --output ./publish_linux/
)
- if "%IMAGE%"=="Ubuntu" (
xcopy /I /Y .\straycat_server.py .\publish_linux\
)
- if "%IMAGE%"=="Ubuntu" (
xcopy /I /Y .\straycat.py .\publish_linux\
)
- if "%IMAGE%"=="Ubuntu" (
7z a -r -tzip ./publish/StrayCatRunner_Linux.zip .\publish_linux\*
)
artifacts:
- path: './publish/StrayCatRunner_*.zip'
name: Archives
deploy:
- provider: GitHub
tag: release
release: Release
description: 'Offical Release'
auth_token:
secure: W9zp4UoDh0/yZQqKXghZKpcVVXRHPRkCqTzHYrPgbbDv5tRyhAyLsb9TCdJn+Kww
artifact: Archives
draft: false
prerelease: false
on:
appveyor_repo_tag: false