-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
34 lines (28 loc) · 1.03 KB
/
action.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
name: Arma 3 Tools
description: Setup Arma 3 Tools
inputs:
toolsUrl:
description: URL to hosted ZIP file with Arma 3 Tools
required: true
runs:
using: composite
steps:
- name: Install Arma 3 Tools
shell: pwsh
env:
ARMA3_TOOLS_URL: ${{ inputs.toolsUrl }}
run: |
if (-not ($IsWindows -or $IsLinux)) {
throw "Unsupported OS"
}
Invoke-WebRequest "$env:ARMA3_TOOLS_URL" -OutFile arma3tools.zip
if ($IsWindows) {
Expand-7ZipArchive -Path arma3tools.zip -DestinationPath C:\arma3tools
regedit /S "${{ github.action_path }}\arma3tools.reg"
(Get-Content C:\arma3tools\BinMake\binMakeRules.txt) -replace 'O:\\Arma3CommunityTools', 'C:\arma3tools' | Set-Content C:\arma3tools\BinMake\binMakeRules.txt
choco install directx
} elseif ($IsLinux) {
Invoke-Expression "unzip arma3tools.zip -d ~/.local/share/arma3tools"
sudo apt-get install -y wine64
}
Remove-Item arma3tools.zip