Skip to content

Commit

Permalink
Merge branch 'mr-176'
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium committed Jan 19, 2024
2 parents aa6778e + 9921389 commit eac42c1
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@
[submodule "vendor/libnyquist"]
path = vendor/libnyquist
url = https://github.com/ddiakopoulos/libnyquist.git
[submodule "ext/txAdmin"]
path = ext/txAdmin
url = https://github.com/citizenfx/txAdmin.git
[submodule "vendor/prometheus-cpp"]
path = vendor/prometheus-cpp
url = https://github.com/jupp0r/prometheus-cpp.git
Expand Down
1 change: 0 additions & 1 deletion code/tools/ci/psm1/cfxVersions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ function Get-CfxVersions {
$versions.UI = ((git rev-list $versions.UICommit | measure-object).Count * 10) + 1100000

$SystemResourcesPaths = @(
"ext/txAdmin"
"ext/system-resources"
)
$versions.SystemResourcesCommit = (git rev-list -1 HEAD $SystemResourcesPaths)
Expand Down
1 change: 0 additions & 1 deletion ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ part of the main project.
* [**nuget/**](./nuget): Build files for the `CitizenFX.Core.Client` and `CitizenFX.Core.Server` NuGet packages.
* [**symbol-upload/**](./symbol-upload): A tool to collect Linux build symbols to upload to a .NET Core-style symbol server.
* [**system-resources/**](./system-resources): System resources bundled with FXServer by default.
* [**txAdmin/**](./txAdmin): A local snapshot of [txAdmin](https://github.com/tabarra/txAdmin), the official server monitor/management dashboard.
* [**typings/**](./typings): Build files for the `@citizenfx/client` and `@citizenfx/server` NPM packages.
* [**ui-build/**](./ui-build): Scripts and data files for building `citizen/ui.zip` including root helpers, legacy UI scripts and a packed version of `cfx-ui`.
* [**webadmin/**](./webadmin): In-process web dashboard system resource.
19 changes: 9 additions & 10 deletions ext/system-resources/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ if "%1" == "chat" goto chat
set SRRoot=%~dp0\data
pushd %~dp0

:: txadmin
pushd ..\txAdmin
rmdir /s /q dist
:: txAdmin
set MonitorArtifactURL="https://github.com/tabarra/txAdmin/releases/download/v7.0.0/monitor.zip"

call npm install npm@8.13.2
call node_modules\.bin\npm ci
call node_modules\.bin\npm run build 2>&1 | findstr /V "not found"
popd
set MonitorPath=%SRRoot%\monitor
set MonitorArtifactPath=%SRRoot%\monitor.zip

rmdir /s /q %SRRoot%\monitor\
mkdir %SRRoot%\monitor\
rmdir /s /q %MonitorPath%
mkdir %MonitorPath%

xcopy /y /e ..\txAdmin\dist %SRRoot%\monitor
curl -Lo %MonitorArtifactPath% %MonitorArtifactURL%
tar -C %MonitorPath%\ -xf %MonitorArtifactPath%
del %MonitorArtifactPath%

:: chat
:chat
Expand Down
15 changes: 10 additions & 5 deletions ext/system-resources/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ npm install -g [email protected]
mkdir -p data

# txAdmin
cd ../txAdmin/
npm ci
npm run build
cd ../system-resources/
MONITOR_ARTIFACT_URL="https://github.com/tabarra/txAdmin/releases/download/v7.0.0/monitor.zip"

cp -a ../txAdmin/dist data/monitor
MONITOR_PATH=data/monitor
MONITOR_ARTIFACT_PATH=data/monitor.zip

rm -rf $MONITOR_PATH
mkdir -p $MONITOR_PATH

curl -Lo $MONITOR_ARTIFACT_PATH $MONITOR_ARTIFACT_URL
unzip $MONITOR_ARTIFACT_PATH -d $MONITOR_PATH
rm $MONITOR_ARTIFACT_PATH

# chat
cd resources/chat/
Expand Down
1 change: 0 additions & 1 deletion ext/txAdmin
Submodule txAdmin deleted from 361fed

0 comments on commit eac42c1

Please sign in to comment.