|
|
@@ -64,20 +64,6 @@
|
|
|
</field>
|
|
|
</custom_fields>
|
|
|
<post_install>
|
|
|
-BASE="https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/"
|
|
|
-
|
|
|
-wget $BASE -Otmp
|
|
|
-
|
|
|
-# Assuming the version schema isn't changed or the url above isn't moved, this will always work.
|
|
|
-LATEST_VERSION=$(grep -Po '(?<=href=")[^"]*' tmp | tail -1)
|
|
|
-
|
|
|
-wget "${BASE}${LATEST_VERSION}/fx.tar.xz"
|
|
|
-wget https://github.com/citizenfx/cfx-server-data/archive/master.zip -Ocfx-server-data.zip
|
|
|
-
|
|
|
-tar -xvf fx.tar.xz -C $PWD
|
|
|
-unzip cfx-server-data.zip -d $PWD/server-data
|
|
|
-mv $PWD/server-data/cfx-server-data-master/resources $PWD/resources
|
|
|
-
|
|
|
cat > $PWD/server.cfg <<END
|
|
|
# you probably don't want to change these!
|
|
|
# only change them if you're using a server with multiple network interfaces
|
|
|
@@ -136,11 +122,7 @@ sv_licenseKey superduperkey
|
|
|
set steam_webApiKey ""
|
|
|
|
|
|
END
|
|
|
-
|
|
|
-rm tmp fx.tar.xz cfx-server-data.zip
|
|
|
-rm -rf $PWD/server-data
|
|
|
</post_install>
|
|
|
-
|
|
|
<configuration_files>
|
|
|
<file description="Main Config File">server.cfg</file>
|
|
|
</configuration_files>
|