Skip to content

Commit b5cc83f

Browse files
committed
move downloaded binaries out of tree
1 parent 2a4962a commit b5cc83f

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ endif
105105
# dotnet clean and msbuild -t:Clean leave files that cause problems when switching between mono/dotnet
106106
# Deleting the intermediate / output directories ensures the build directory is actually clean
107107
clean:
108-
@-$(RM_RF) ./bin ./*/obj
108+
@-$(RM_RF) ./bin ./*/obj ./build
109109
@-$(RM_F) IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
110110

111111
check:

packaging/linux/buildpackage.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ fi
4848
# Add native libraries
4949
echo "Downloading appimagetool"
5050
if command -v curl >/dev/null 2>&1; then
51-
curl -s -L -O https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
51+
curl -s -L -o $HOME/appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
5252
else
53-
wget -cq https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
53+
wget -cq -O $HOME/appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
5454
fi
5555

5656
chmod a+x appimagetool-x86_64.AppImage
@@ -114,10 +114,10 @@ build_appimage() {
114114

115115
# Embed update metadata if (and only if) compiled on GitHub Actions
116116
if [ -n "${GITHUB_REPOSITORY}" ]; then
117-
ARCH=x86_64 ./appimagetool-x86_64.AppImage --appimage-extract-and-run --no-appstream -u "zsync|https://master.openra.net/appimagecheck.zsync?mod=${MOD_ID}&channel=${UPDATE_CHANNEL}" "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
117+
ARCH=x86_64 $HOME/appimagetool-x86_64.AppImage --appimage-extract-and-run --no-appstream -u "zsync|https://master.openra.net/appimagecheck.zsync?mod=${MOD_ID}&channel=${UPDATE_CHANNEL}" "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
118118
zsyncmake -u "https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG}/${APPIMAGE}" -o "${OUTPUTDIR}/${APPIMAGE}.zsync" "${OUTPUTDIR}/${APPIMAGE}"
119119
else
120-
ARCH=x86_64 ./appimagetool-x86_64.AppImage --appimage-extract-and-run --no-appstream "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
120+
ARCH=x86_64 $HOME/appimagetool-x86_64.AppImage --appimage-extract-and-run --no-appstream "${APPDIR}" "${OUTPUTDIR}/${APPIMAGE}"
121121
fi
122122

123123
rm -rf "${APPDIR}"
@@ -128,4 +128,4 @@ build_appimage "cnc" "Tiberian Dawn" "699223250181292033"
128128
build_appimage "d2k" "Dune 2000" "712711732770111550"
129129

130130
# Clean up
131-
rm -rf appimagetool-x86_64.AppImage "${BUILTDIR}"
131+
rm -rf $HOME/appimagetool-x86_64.AppImage "${BUILTDIR}"

packaging/windows/buildpackage.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ elif [[ ${TAG} == playtest* ]]; then
3737
fi
3838

3939
if command -v curl >/dev/null 2>&1; then
40-
curl -s -L -O https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
40+
curl -s -L -o $HOME/rcedit-x64.exe https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
4141
else
42-
wget -cq https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
42+
wget -cq -O $HOME/rcedit-x64.exe https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
4343
fi
4444

4545
function makelauncher()
@@ -58,12 +58,12 @@ function makelauncher()
5858

5959
# Use rcedit to patch the generated EXE with missing assembly/PortableExecutable information because .NET 6 ignores that when building on Linux.
6060
# Using a backwards version tag because rcedit is unable to set versions starting with a letter.
61-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-product-version "${BACKWARDS_TAG}"
62-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "ProductName" "OpenRA"
63-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "CompanyName" "The OpenRA team"
64-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "FileDescription" "${LAUNCHER_NAME} mod for OpenRA"
65-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "LegalCopyright" "Copyright (c) The OpenRA Developers and Contributors"
66-
wine64 rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-icon "${BUILTDIR}/${MOD_ID}.ico"
61+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-product-version "${BACKWARDS_TAG}"
62+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "ProductName" "OpenRA"
63+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "CompanyName" "The OpenRA team"
64+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "FileDescription" "${LAUNCHER_NAME} mod for OpenRA"
65+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-version-string "LegalCopyright" "Copyright (c) The OpenRA Developers and Contributors"
66+
wine64 $HOME/rcedit-x64.exe "${BUILTDIR}/${LAUNCHER_NAME}.exe" --set-icon "${BUILTDIR}/${MOD_ID}.ico"
6767
}
6868

6969
function build_platform()
@@ -101,4 +101,4 @@ function build_platform()
101101

102102
build_platform "x86"
103103
build_platform "x64"
104-
rm rcedit-x64.exe
104+
rm $HOME/rcedit-x64.exe

0 commit comments

Comments
 (0)