-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (28 loc) · 1.11 KB
/
Makefile
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
35
36
all: build
BEPINEX_VERSION = 5
clean:
@dotnet clean
restore:
@dotnet restore
build-ui:
@npm install
@npx esbuild ui_src/city_monitor.jsx --bundle --outfile=dist/bundle.js
dev-ui:
@npx esbuild ui_src/city_monitor.jsx --watch --bundle --outfile="G:/SteamLibrary/steamapps/common/Cities Skylines II/Cities2_Data\StreamingAssets\~UI~\HookUI\Extensions\panel.example.city_monitor.js"
build: clean restore build-ui
@dotnet build /p:BepInExVersion=$(BEPINEX_VERSION)
package-win: build
@-mkdir dist
@cmd /c copy /y "bin\Debug\netstandard2.1\0Harmony.dll" "dist\"
@cmd /c copy /y "bin\Debug\netstandard2.1\System.Collections.Immutable.dll" "dist\"
@cmd /c copy /y "bin\Debug\netstandard2.1\CityMonitor.dll" "dist\"
@echo Packaged to dist/
package-unix: build
@-rm -r dist/
@-mkdir dist
@cp bin/Debug/netstandard2.1/0Harmony.dll dist
@cp bin/Debug/netstandard2.1/System.Collections.Immutable.dll dist
@cp bin/Debug/netstandard2.1/CityMonitor.dll dist
@echo Packaged to dist/
package-dev: package-unix
@cp -r dist\CityMonitor.dll G:\Thunderstore\CitiesSkylines2\profiles\HookUI\BepInEx\plugins\CityMonitor\CityMonitor.dll