Skip to content

Commit

Permalink
Update engine to playtest-20221223.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 23, 2022
1 parent 7eed99a commit 4744798
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 197 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
file_glob: true
file: build/linux/*

macos-net:
name: macOS .NET
macos:
name: macOS Disk Image
runs-on: macos-11
steps:
- name: Clone Repository
Expand All @@ -62,7 +62,7 @@ jobs:
run: |
make engine
mkdir -p build/macos
./packaging/macos/buildpackage.sh "${GIT_TAG}" "${PWD}/build/macos" "standard" "build.dmg"
./packaging/macos/buildpackage.sh "${GIT_TAG}" "${PWD}/build/macos"
- name: Upload Package
uses: svenstaro/upload-release-action@v2
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,30 @@ MOD_SOLUTION_FILES = $(shell find . -maxdepth 1 -iname '*.sln' 2> /dev/null)
MSBUILD = msbuild -verbosity:m -nologo
DOTNET = dotnet

RUNTIME ?= net5
RUNTIME ?= net6
DOTNET_RID = $(shell ${DOTNET} --info | grep RID: | cut -w -f3)

ifndef TARGETPLATFORM
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_S),Darwin)
ifeq ($(RUNTIME)-$(DOTNET_RID),net6-osx-arm64)
TARGETPLATFORM = osx-arm64
else
TARGETPLATFORM = osx-x64
endif
else
ifeq ($(UNAME_M),x86_64)
TARGETPLATFORM = linux-x64
else
ifeq ($(UNAME_M),aarch64)
TARGETPLATFORM = linux-arm64
else
TARGETPLATFORM = unix-generic
endif
endif
endif
endif

check-sdk-scripts:
@awk '/\r$$/ { exit(1); }' mod.config || (printf "Invalid mod.config format: file must be saved using unix-style (CR, not CRLF) line endings.\n"; exit 1)
Expand Down
2 changes: 1 addition & 1 deletion mod.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
MOD_ID="cnc"

# The OpenRA engine version to use for this project.
ENGINE_VERSION="2aaf0afc5f"
ENGINE_VERSION="7a507e8dbe"

##############################################################################
# Packaging
Expand Down
2 changes: 1 addition & 1 deletion mods/cnc/chrome/mainmenu-prerelease-notification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Container@MAINMENU_PRERELEASE_NOTIFICATION:
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 550
Height: 155
Height: 120
Children:
Label@TITLE:
Width: PARENT_RIGHT
Expand Down
4 changes: 2 additions & 2 deletions packaging/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ install_mod_assemblies() {
install -m644 "${LIB}" "${DEST_PATH}"
done

if [ "${TARGETPLATFORM}" = "linux-x64" ]; then
if [ "${TARGETPLATFORM}" = "linux-x64" ] || [ "${TARGETPLATFORM}" = "linux-arm64" ]; then
for LIB in "${ENGINE_PATH}/bin/"*.so; do
install -m755 "${LIB}" "${DEST_PATH}"
done
fi

if [ "${TARGETPLATFORM}" = "osx-x64" ]; then
if [ "${TARGETPLATFORM}" = "osx-x64" ] || [ "${TARGETPLATFORM}" = "osx-arm64" ]; then
for LIB in "${ENGINE_PATH}/bin/"*.dylib; do
install -m755 "${LIB}" "${DEST_PATH}"
done
Expand Down
Loading

0 comments on commit 4744798

Please sign in to comment.