-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
263 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
include src/palworld_pal_editor/assets/* | ||
include src/palworld_pal_editor/assets/data/* | ||
include src/palworld_pal_editor/assets/icons/elements/* | ||
include src/palworld_pal_editor/assets/icons/pals/* | ||
include src/palworld_pal_editor/webui/* | ||
include src/palworld_pal_editor/webui/assets/* | ||
include src/palworld_pal_editor/webui/icons/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
if which npm > /dev/null; then | ||
NPM_CMD=npm | ||
else | ||
echo "Node is not installed." | ||
fi | ||
|
||
cd "./frontend/palworld-pal-editor-webui" | ||
${NPM_CMD} install | ||
${NPM_CMD} run build | ||
cd "../../" | ||
rm -r "./src/palworld_pal_editor/webui" | ||
mv "./frontend/palworld-pal-editor-webui/dist" "./src/palworld_pal_editor/webui" | ||
|
||
# Check for Python 3.x and set the appropriate command | ||
if which python3 > /dev/null; then | ||
PYTHON_CMD=python3 | ||
elif which python > /dev/null; then | ||
PYTHON_CMD=python | ||
else | ||
echo "Python is not installed." | ||
exit 1 | ||
fi | ||
|
||
# Extract the Python version | ||
PYTHON_VERSION=$(${PYTHON_CMD} --version | awk '{print $2}') | ||
PYTHON_MAJOR_VERSION=$(echo ${PYTHON_VERSION} | cut -d. -f1) | ||
PYTHON_MINOR_VERSION=$(echo ${PYTHON_VERSION} | cut -d. -f2) | ||
|
||
# Check if Python version is 3.11 or newer | ||
if [ "${PYTHON_MAJOR_VERSION}" -lt 3 ] || { [ "${PYTHON_MAJOR_VERSION}" -eq 3 ] && [ "${PYTHON_MINOR_VERSION}" -lt 11 ]; }; then | ||
echo "Python version 3.11 or newer is required." | ||
exit 1 | ||
fi | ||
|
||
echo "Using ${PYTHON_CMD} (version ${PYTHON_VERSION})" | ||
|
||
# Create a virtual environment named 'venv' (skip if already created) | ||
${PYTHON_CMD} -m venv venv | ||
|
||
# Activate the virtual environment | ||
source venv/bin/activate | ||
|
||
# Install packages from requirements.txt | ||
pip install -r requirements.txt | ||
|
||
pip install twine | ||
pip install --upgrade build | ||
|
||
rm -r "./dist" | ||
|
||
python -m build | ||
python -m twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.