mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-29 09:15:11 +01:00
6245e91624
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com> Co-authored-by: Govert de Gans <grappigegovert@hotmail.com> Co-authored-by: Gray Olson <gray@grayolson.com> Co-authored-by: Alexandre Sanchez <alex73630@gmail.com> Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com> Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com> Co-authored-by: David <davidstulemeijer@gmail.com> Co-authored-by: c0derMo <c0dermo@users.noreply.github.com> Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com> Signed-off-by: Reece Dunham <me@rdil.rocks>
56 lines
2.1 KiB
Bash
Executable File
56 lines
2.1 KiB
Bash
Executable File
#
|
|
# The Peacock Project - a HITMAN server replacement.
|
|
# Copyright (C) 2021-2022 The Peacock Project Team
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
VERSION=$(jq -r '.version' package.json)
|
|
|
|
if [ "$1" == "" ]; then
|
|
echo "Assembling $VERSION with default settings"
|
|
IS_LITE=false
|
|
OUT_DIR=Peacock-v"$VERSION"
|
|
else
|
|
echo "Assembling $VERSION with lite configuration"
|
|
IS_LITE=true
|
|
OUT_DIR=Peacock-v"$VERSION"-lite
|
|
fi
|
|
|
|
mkdir "$OUT_DIR"
|
|
cp packaging/HOW_TO_USE.html "$OUT_DIR"
|
|
cp PeacockPatcher.exe "$OUT_DIR"
|
|
cp chunk*.js "$OUT_DIR"
|
|
if [ "$IS_LITE" != true ]; then
|
|
cp -r nodedist "$OUT_DIR"
|
|
fi
|
|
cp LICENSE "$OUT_DIR"
|
|
cp "Start Server.cmd" "$OUT_DIR"
|
|
cp "Tools.cmd" "$OUT_DIR"
|
|
cp THIRDPARTYNOTICES.txt "$OUT_DIR"
|
|
cp .nvmrc "$OUT_DIR"
|
|
mkdir "$OUT_DIR"/resources
|
|
cp resources/dynamic_resources_h3.rpkg "$OUT_DIR"/resources/dynamic_resources_h3.rpkg
|
|
cp resources/dynamic_resources_h2.rpkg "$OUT_DIR"/resources/dynamic_resources_h2.rpkg
|
|
cp resources/dynamic_resources_h1.rpkg "$OUT_DIR"/resources/dynamic_resources_h1.rpkg
|
|
cp -r resources/challenges "$OUT_DIR"/resources/challenges
|
|
cp resources/contracts.br "$OUT_DIR"/resources/contracts.br
|
|
mkdir "$OUT_DIR"/webui
|
|
mkdir "$OUT_DIR"/webui/dist
|
|
cp webui/dist/*.html "$OUT_DIR"/webui/dist
|
|
cp -r webui/dist/assets "$OUT_DIR"/webui/dist/assets
|
|
cp webui/dist/THIRDPARTYNOTICES.txt "$OUT_DIR"/webui/dist/THIRDPARTYNOTICES.txt
|
|
ls "$OUT_DIR"
|
|
zip -9 -r "$OUT_DIR".zip "$OUT_DIR"
|