forked from EZFNDEV/UEAESKeyFinder
-
Notifications
You must be signed in to change notification settings - Fork 1
136 lines (107 loc) · 6.58 KB
/
build.yml
File metadata and controls
136 lines (107 loc) · 6.58 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Build UEAESKeyFinder
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore UEAESKeyFinder.sln
# ── Exagear (Wine/Android) ── net35, x86 только, без Costura.Fody ──────
- name: Build net35 x86 (Exagear / Wine)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net35 -p:Platform=x86
# ── XP SP3 / Vista ── net40 ─────────────────────────────────────────────
- name: Build net40 x86 (XP)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net40 -p:Platform=x86
- name: Build net40 x64 (XP x64)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net40 -p:Platform=x64
# ── Win 7 SP1 ── net461 ──────────────────────────────────────────────────
- name: Build net461 x86 (Win7)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net461 -p:Platform=x86
- name: Build net461 x64 (Win7)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net461 -p:Platform=x64
# ── Win 8 / 8.1 ── net48 ────────────────────────────────────────────────
- name: Build net48 x86 (Win8/8.1)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net48 -p:Platform=x86
- name: Build net48 x64 (Win8/8.1)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net48 -p:Platform=x64
# ── Win 10 / 11 ── net481 ────────────────────────────────────────────────
- name: Build net481 x86 (Win10/11)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net481 -p:Platform=x86
- name: Build net481 x64 (Win10/11)
run: dotnet build ./UEAESKeyFinder/UEAESKeyFinder.csproj -c Release -f net481 -p:Platform=x64
# ── Переименование ───────────────────────────────────────────────────────
- name: Collect artifacts
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path publish | Out-Null
$net35_x86 = "UEAESKeyFinder/bin/x86/Release/net35/UEAESKeyFinder.exe"
$net40_x86 = "UEAESKeyFinder/bin/x86/Release/net40/UEAESKeyFinder.exe"
$net40_x64 = "UEAESKeyFinder/bin/x64/Release/net40/UEAESKeyFinder.exe"
$net461_x86 = "UEAESKeyFinder/bin/x86/Release/net461/UEAESKeyFinder.exe"
$net461_x64 = "UEAESKeyFinder/bin/x64/Release/net461/UEAESKeyFinder.exe"
$net48_x86 = "UEAESKeyFinder/bin/x86/Release/net48/UEAESKeyFinder.exe"
$net48_x64 = "UEAESKeyFinder/bin/x64/Release/net48/UEAESKeyFinder.exe"
$net481_x86 = "UEAESKeyFinder/bin/x86/Release/net481/UEAESKeyFinder.exe"
$net481_x64 = "UEAESKeyFinder/bin/x64/Release/net481/UEAESKeyFinder.exe"
# Exagear (Wine/Android) — только x86
Copy-Item $net35_x86 "publish/UEAESKeyFinder-Exagear-x86.exe"
# Windows XP SP3
Copy-Item $net40_x86 "publish/UEAESKeyFinder-XP-x86.exe"
Copy-Item $net40_x64 "publish/UEAESKeyFinder-XP-x64.exe"
# Windows 7 SP1
Copy-Item $net461_x86 "publish/UEAESKeyFinder-7-x86.exe"
Copy-Item $net461_x64 "publish/UEAESKeyFinder-7-x64.exe"
# Windows 8
Copy-Item $net48_x86 "publish/UEAESKeyFinder-8-x86.exe"
Copy-Item $net48_x64 "publish/UEAESKeyFinder-8-x64.exe"
# Windows 8.1
Copy-Item $net48_x86 "publish/UEAESKeyFinder-8.1-x86.exe"
Copy-Item $net48_x64 "publish/UEAESKeyFinder-8.1-x64.exe"
# Windows 10
Copy-Item $net481_x86 "publish/UEAESKeyFinder-10-x86.exe"
Copy-Item $net481_x64 "publish/UEAESKeyFinder-10-x64.exe"
# Windows 11
Copy-Item $net481_x86 "publish/UEAESKeyFinder-11-x86.exe"
Copy-Item $net481_x64 "publish/UEAESKeyFinder-11-x64.exe"
Get-ChildItem publish/
- name: Get DateTime Tashkent/Uzbekistan
shell: bash
run: echo "now=$(date -u -d '+5 hour' '+%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v3
with:
tag_name: build-${{ github.run_number }}
name: "UEAESKeyFinder Build (${{ env.now }})"
body: |
Build time: ${{ env.now }}
| File | Platform | Bits | .NET |
|------|----------|------|------|
| `UEAESKeyFinder-Exagear-x86.exe` | Exagear / Wine (Android) | 32-bit | 3.5 |
| `UEAESKeyFinder-XP-x86.exe` | Windows XP SP3 | 32-bit | 4.0 |
| `UEAESKeyFinder-XP-x64.exe` | Windows XP x64 | 64-bit | 4.0 |
| `UEAESKeyFinder-7-x86.exe` | Windows 7 SP1 | 32-bit | 4.6.1 |
| `UEAESKeyFinder-7-x64.exe` | Windows 7 SP1 | 64-bit | 4.6.1 |
| `UEAESKeyFinder-8-x86.exe` | Windows 8 | 32-bit | 4.8 |
| `UEAESKeyFinder-8-x64.exe` | Windows 8 | 64-bit | 4.8 |
| `UEAESKeyFinder-8.1-x86.exe` | Windows 8.1 | 32-bit | 4.8 |
| `UEAESKeyFinder-8.1-x64.exe` | Windows 8.1 | 64-bit | 4.8 |
| `UEAESKeyFinder-10-x86.exe` | Windows 10 | 32-bit | 4.8.1 |
| `UEAESKeyFinder-10-x64.exe` | Windows 10 | 64-bit | 4.8.1 |
| `UEAESKeyFinder-11-x86.exe` | Windows 11 | 32-bit | 4.8.1 |
| `UEAESKeyFinder-11-x64.exe` | Windows 11 | 64-bit | 4.8.1 |
> **Exagear**: запускай `UEAESKeyFinder-Exagear-x86.exe` — не требует установки .NET, работает через Wine Mono.
files: publish/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}