Compare commits
46
Commits
main
...
c1f3defed9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1f3defed9 | ||
|
|
b226aaa33f | ||
|
|
f3a67a5140 | ||
|
|
284c2469fc | ||
|
|
460451d7d5 | ||
|
|
0018f1cb57 | ||
|
|
fd97b0231d | ||
|
|
91a7001435 | ||
|
|
ad730ddd9d | ||
|
|
75eaa11be0 | ||
|
|
88f617dae4 | ||
|
|
f8a691269f | ||
|
|
be6c18ef83 | ||
|
|
7a8e1918b9 | ||
|
|
15c0c204f2 | ||
|
|
5cbefecd27 | ||
|
|
3a5390a7dc | ||
|
|
f9f511ebf4 | ||
|
|
dea43a249d | ||
|
|
c561e199ac | ||
|
|
d72c157377 | ||
|
|
48c8b4d8c7 | ||
|
|
abad35f410 | ||
|
|
6cc8823505 | ||
|
|
ddbb7d5030 | ||
|
|
87c5859ef8 | ||
|
|
77846aa874 | ||
|
|
ddc87eaea1 | ||
|
|
11b3b3f9d7 | ||
|
|
974b3175be | ||
|
|
01838dbc9c | ||
|
|
156c7dbd5d | ||
|
|
5888cb589b | ||
|
|
04de54ce83 | ||
|
|
3ec6bc8961 | ||
|
|
bbdfc07340 | ||
|
|
12a945915c | ||
|
|
68b1297f46 | ||
|
|
f38a566009 | ||
|
|
33d5efd6ee | ||
|
|
3fc1614224 | ||
|
|
c286a77df3 | ||
|
|
415bec7067 | ||
|
|
270d69b6f3 | ||
|
|
87cdfc6f60 | ||
|
|
50b3049c93 |
Executable
+42
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Validate OAT version
|
||||||
|
if [[ -z "$OAT_VERSION" ]]; then
|
||||||
|
echo "No OAT version was specified, please set the OAT_VERSION environment variable."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make sure we have cURL (and file for debugging)
|
||||||
|
dpkg --add-architecture i386
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y curl file
|
||||||
|
|
||||||
|
# Construct the download URL
|
||||||
|
DOWNLOAD_URL="https://github.com/Laupetin/OpenAssetTools/releases/download/v${OAT_VERSION}/oat-linux.tar.gz"
|
||||||
|
|
||||||
|
echo "Downloading OAT from: $DOWNLOAD_URL"
|
||||||
|
|
||||||
|
# Define temporary directory
|
||||||
|
TEMP_DIR="/tmp/oat_download"
|
||||||
|
|
||||||
|
# Create temporary directory if it doesn't exist
|
||||||
|
mkdir -p "$TEMP_DIR"
|
||||||
|
|
||||||
|
# Download the tar.gz file to the temporary directory
|
||||||
|
curl -L -o "${TEMP_DIR}/oat-linux.tar.gz" "$DOWNLOAD_URL"
|
||||||
|
|
||||||
|
# Extract the contents of the tar.gz file
|
||||||
|
tar -xzf "${TEMP_DIR}/oat-linux.tar.gz" -C "${TEMP_DIR}"
|
||||||
|
|
||||||
|
# Copy the executables to /usr/local/bin and make them executable
|
||||||
|
cp "${TEMP_DIR}/Linker" "${TEMP_DIR}/Unlinker" .
|
||||||
|
chmod +x Linker Unlinker
|
||||||
|
|
||||||
|
# Clean up temporary directory
|
||||||
|
rm -rf "$TEMP_DIR"
|
||||||
|
|
||||||
|
echo "OpenAssetTools version $OAT_VERSION has been installed."
|
||||||
|
|
||||||
|
file Linker
|
||||||
|
file Unlinker
|
||||||
|
./Linker --help
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
name: link
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
OAT_VERSION: "0.8.3"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
link-linux:
|
||||||
|
name: Link assets on Linux
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out files
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
# NOTE - If LFS ever starts getting used for storing zones, switch this to true!
|
||||||
|
lfs: false
|
||||||
|
|
||||||
|
- name: Test Docker
|
||||||
|
uses: addnab/docker-run-action@v3
|
||||||
|
with:
|
||||||
|
image: ubuntu:noble
|
||||||
|
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}
|
||||||
|
export OAT_VERSION=${{ env.OAT_VERSION }}
|
||||||
|
./.gitea/scripts/ci.sh
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "deps/iw5-zones"]
|
||||||
|
path = deps/iw5-zones
|
||||||
|
url = https://git.alterware.dev/AlterWare/iw5-zones.git
|
||||||
+1
Submodule deps/iw5-zones added at bd78584a7e
Reference in New Issue
Block a user