/
swift-nightly.json
67 lines (67 loc) 路 3.34 KB
/
swift-nightly.json
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
{
"version": "20240502.2",
"homepage": "https://www.swift.org/",
"description": "A general-purpose programming language built using a modern approach to safety, performance, and software design patterns.",
"license": "Apache-2.0",
"suggest": {
"python": "main/python",
"vcredist": "extras/vcredist2022"
},
"notes": [
"To make Swift toolchain work, you must have Visual Studio and Windows SDK components installed.",
"Read https://www.swift.org/getting-started/#support-files for Supporting Files installation guide."
],
"architecture": {
"64bit": {
"url": "https://github.com/thebrowsercompany/swift-build/releases/download/20240502.2/installer-amd64.exe#/swiftsetup.exe",
"hash": "5dd97596bbbb8faa13d57f37268ffd9a1499630714d54c5920dd19c491f78978"
},
"arm64": {
"url": "https://github.com/thebrowsercompany/swift-build/releases/download/20240502.2/installer-arm64.exe#/swiftsetup.exe",
"hash": "af0dd4c9f338eca11e704b8c791a228c7b89522aceeeaf49ab2248ff33fd9eb3"
}
},
"pre_install": [
"Expand-DarkArchive \"$dir\\swiftsetup.exe\" \"$dir\\extract_folder\" -Removal",
"$xml = [xml](Get-Content -Raw \"$dir\\extract_folder\\UX\\manifest.xml\" -Encoding utf8)",
"$xml.BurnManifest.Payload | Where-Object { $_.FilePath.EndsWith(\".msi\") } | ForEach-Object {",
" if ($($_.FilePath) -eq \"rtl.msi\") {",
" Expand-MsiArchive \"$dir\\extract_folder\\AttachedContainer\\$($_.FilePath)\" \"$dir\\extract_folder\\LocalApp\\Programs\\Swift\\Runtimes\\usr\\bin\"",
" } else {",
" Expand-MsiArchive \"$dir\\extract_folder\\AttachedContainer\\$($_.FilePath)\" \"$dir\\extract_folder\"",
" }",
"}",
"$ver = \"0.0.0\"",
"Move-Item -Path \"$dir\\extract_folder\\LocalApp\\Programs\\Swift\" -Destination \"$dir\"",
"Move-Item -Path \"$dir\\Swift\\Platforms\\$ver\\Windows.platform\" -Destination \"$dir\\Swift\\Platforms\"",
"Move-Item -Path \"$dir\\Swift\\Toolchains\\$($ver)+Asserts\\usr\" -Destination \"$dir\\Swift\\Toolchains\"",
"# Move-Item -Path \"$dir\\Swift\\Tools\\$ver\\*\" -Destination \"$dir\\Swift\\Tools\"",
"Remove-Item \"$dir\\Swift\\Platforms\\$ver\" | Out-Null",
"Remove-Item \"$dir\\Swift\\Toolchains\\$ver+Asserts\" | Out-Null",
"# Remove-Item \"$dir\\Swift\\Tools\\$ver\" | Out-Null",
"Move-Item -Path \"$dir\\Swift\\*\" -Destination \"$dir\"",
"Remove-Item \"$dir\\Swift\", \"$dir\\extract_folder\" -Recurse | Out-Null"
],
"env_add_path": [
"Runtimes\\usr\\bin",
"Toolchains\\usr\\bin",
"Tools"
],
"env_set": {
"SDKROOT": "$dir\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk"
},
"checkver": {
"github": "https://github.com/thebrowsercompany/swift-build",
"regex": "(\\d{8}\\.\\d)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/thebrowsercompany/swift-build/releases/download/$version/installer-amd64.exe#/swiftsetup.exe"
},
"arm64": {
"url": "https://github.com/thebrowsercompany/swift-build/releases/download/$version/installer-arm64.exe#/swiftsetup.exe"
}
}
}
}