Skip to content

Commit d11559a

Browse files
committed
still searching for a unified build process
1 parent ac1b226 commit d11559a

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

Makefile

+13-13
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ else
9898
@$(DOTNET) build -c ${CONFIGURATION} -nologo -p:TargetPlatform=$(TARGETPLATFORM)
9999
endif
100100
ifeq ($(TARGETPLATFORM), unix-generic)
101-
@sh -c ./packaging/shared/configure-system-libraries.sh
101+
@sh -c './packaging/shared/configure-system-libraries.sh'
102102
endif
103-
@sh -c ./packaging/shared/fetch-geoip.sh
103+
@sh -c './packaging/shared/fetch-geoip.sh'
104104

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
@@ -118,14 +118,14 @@ else
118118
@$(DOTNET) build -c Debug -nologo -warnaserror -p:TargetPlatform=$(TARGETPLATFORM)
119119
endif
120120
ifeq ($(TARGETPLATFORM), unix-generic)
121-
@sh -c ./packaging/shared/configure-system-libraries.sh
121+
@sh -c './packaging/shared/configure-system-libraries.sh'
122122
endif
123123
@echo
124124
@echo "Checking for explicit interface violations..."
125-
@sh -c ./packaging/shared/utility.sh all --check-explicit-interfaces
125+
@sh -c './packaging/shared/utility.sh all --check-explicit-interfaces'
126126
@echo
127127
@echo "Checking for incorrect conditional trait interface overrides..."
128-
@sh -c ./packaging/shared/utility.sh all --check-conditional-trait-interface-overrides
128+
@sh -c './packaging/shared/utility.sh all --check-conditional-trait-interface-overrides'
129129

130130
check-scripts:
131131
@echo
@@ -135,16 +135,16 @@ check-scripts:
135135
test: all
136136
@echo
137137
@echo "Testing Tiberian Sun mod MiniYAML..."
138-
@sh -c ./packaging/shared/utility.sh ts --check-yaml
138+
@sh -c './packaging/shared/utility.sh ts --check-yaml'
139139
@echo
140140
@echo "Testing Dune 2000 mod MiniYAML..."
141-
@sh -c ./packaging/shared/utility.sh d2k --check-yaml
141+
@sh -c './packaging/shared/utility.sh d2k --check-yaml'
142142
@echo
143143
@echo "Testing Tiberian Dawn mod MiniYAML..."
144-
@sh -c ./packaging/shared/utility.sh cnc --check-yaml
144+
@sh -c './packaging/shared/utility.sh cnc --check-yaml'
145145
@echo
146146
@echo "Testing Red Alert mod MiniYAML..."
147-
@sh -c ./packaging/shared/utility.sh ra --check-yaml
147+
@sh -c './packaging/shared/utility.sh ra --check-yaml'
148148

149149
tests:
150150
@dotnet build OpenRA.Test/OpenRA.Test.csproj -c Debug --nologo -p:TargetPlatform=$(TARGETPLATFORM)
@@ -161,18 +161,18 @@ endif
161161
@sh -c ./packaging/shared/set-mod-version.sh "$(VERSION)" mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml'
162162

163163
install:
164-
@sh -c ./packaging/shared/install-assemblies.sh $(CWD) $(DESTDIR)$(gameinstalldir) $(TARGETPLATFORM) $(RUNTIME) True True True'
165-
@sh -c ./packaging/shared/install-data.sh $(CWD) $(DESTDIR)$(gameinstalldir) cnc d2k ra'
164+
@sh -c './packaging/shared/install-assemblies.sh $(CWD) "$(DESTDIR)" "$(gameinstalldir)" $(TARGETPLATFORM) $(RUNTIME) True True True'
165+
@sh -c './packaging/shared/install-data.sh $(CWD) "$(DESTDIR)" "$(gameinstalldir)" cnc d2k ra'
166166

167167
install-linux-shortcuts:
168168
@sh -c '. ./packaging/linux/install-shortcuts.sh $(CWD) "$(DESTDIR)" "$(gameinstalldir)" "$(bindir)" "$(datadir)" "$(shell head -n1 VERSION)" cnc d2k ra'
169169

170170
install-linux-appdata:
171-
@sh -c ./packaging/linux/install-appdata.sh $(CWD) "$(DESTDIR)" "$(datadir)" cnc d2k ra'
171+
@sh -c './packaging/linux/install-appdata.sh $(CWD) "$(DESTDIR)" "$(datadir)" cnc d2k ra'
172172

173173
install-man: all
174174
@mkdir -p $(DESTDIR)$(mandir)/man6/
175-
@sh -c ./packaging/shared/utility.sh all --man-page > $(DESTDIR)$(mandir)/man6/openra.6
175+
@sh -c './packaging/shared/utility.sh all --man-page > $(DESTDIR)$(mandir)/man6/openra.6'
176176

177177
help:
178178
@echo 'to compile, run:'

launch/install-dependencies.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/bash
2+
set -euo pipefail
3+
4+
curl -SOL https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb &&
5+
sudo dpkg -i packages-microsoft-prod.deb &&
6+
rm packages-microsoft-prod.deb &&
7+
sudo apt-get update &&
8+
sudo apt-get install -y --no-install-recommends \
9+
dotnet-sdk-6.0 \
10+
make

launch/launch-dedicated.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Read the file to see which settings you can override
77
set -euo pipefail
88

9-
ENGINEDIR=$(dirname "$0")/../packaging/windows_cross/build
9+
ENGINEDIR=$(dirname "$0")/../src/bin
1010
if command -v mono >/dev/null 2>&1 && [ "$(grep -c .NETCoreApp,Version= "${ENGINEDIR}/OpenRA.Server.dll")" = "0" ]; then
1111
RUNTIME_LAUNCHER="mono --debug"
1212
else

launch/launch-game.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#! /bin/bash
22
set -euo pipefail
33

4-
ENGINEDIR=$(dirname "$0")/../packaging/windows_cross/build
4+
ENGINEDIR=$(dirname "$0")/../src/bin
5+
# Copy resources to bin dir
6+
cp -rp "${ENGINEDIR}/../../res/glsl" "${ENGINEDIR}"
7+
58
if command -v mono >/dev/null 2>&1 && [ "$(grep -c .NETCoreApp,Version= "${ENGINEDIR}/OpenRA.dll")" = "0" ]; then
69
RUNTIME_LAUNCHER="mono --debug"
710
else

0 commit comments

Comments
 (0)