From 40cda1cc9ed94fc9bf0c484fa857989e832da851 Mon Sep 17 00:00:00 2001 From: Jack B-W Date: Wed, 18 Nov 2026 12:49:35 -0500 Subject: [PATCH 1/2] Add: PancakeSlicer --- ct/pancakeslicer.sh | 62 +++++++++++++++++++++++++++++ install/pancakeslicer-install.sh | 67 ++++++++++++++++++++++++++++++++ json/pancakeslicer.json | 46 ++++++++++++++++++++++ 3 files changed, 175 insertions(+) create mode 100644 ct/pancakeslicer.sh create mode 100644 install/pancakeslicer-install.sh create mode 100644 json/pancakeslicer.json diff --git a/ct/pancakeslicer.sh b/ct/pancakeslicer.sh new file mode 100644 index 0000000000..b5ead27e1c --- /dev/null +++ b/ct/pancakeslicer.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jack B-W (jackB-W) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/ZimengXiong/PancakeSlicer + +APP="PancakeSlicer" +var_tags="${var_tags:-3d-printing}" +var_cpu="${var_cpu:-4}" +var_ram="${var_ram:-8192}" +var_disk="${var_disk:-10}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +#var_arm64="${var_arm64:-no}" # arm64 releases exist, but haven't tested yet. CI workflow can check it serves, probably worth a manual test to make sure it slices. +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/pancakeslicer ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer"; then + msg_info "Stopping PancakeSlicer" + systemctl stop pancakeslicer + msg_ok "Stopped PancakeSlicer" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer" "prebuild" "latest" "/opt/pancakeslicer" "PancakeSlicer-*-linux-$(arch_resolve "x64" "arm64").tar.gz" + + msg_info "Updating PancakeSlicer" + sed -i "s|^Environment=ORCA_WEB_SOURCE_URL=.*|Environment=ORCA_WEB_SOURCE_URL=https://github.com/ZimengXiong/PancakeSlicer/releases/tag/v$(cat ~/.pancakeslicer)|" /etc/systemd/system/pancakeslicer.service + systemctl daemon-reload + msg_ok "Updated PancakeSlicer" + + msg_info "Starting PancakeSlicer" + systemctl start pancakeslicer + msg_ok "Started PancakeSlicer" + msg_ok "Updated successfully!" + fi + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:6868${CL}" diff --git a/install/pancakeslicer-install.sh b/install/pancakeslicer-install.sh new file mode 100644 index 0000000000..e5bdf099a5 --- /dev/null +++ b/install/pancakeslicer-install.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jack B-W (jackB-W) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/ZimengXiong/PancakeSlicer + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y ffmpeg +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "pancakeslicer" "ZimengXiong/PancakeSlicer" "prebuild" "latest" "/opt/pancakeslicer" "PancakeSlicer-*-linux-$(arch_resolve "x64" "arm64").tar.gz" + +msg_info "Configuring PancakeSlicer" +mkdir -p /opt/pancakeslicer_data/library /opt/pancakeslicer_data/jobs +cat </opt/pancakeslicer_data/pancakeslicer.env +TZ=UTC +ORCA_WEB_LISTEN=0.0.0.0:6868 +ORCA_WEB_MAX_JOBS=2 +ORCA_WEB_PRINTER_NETWORK=lan +# ORCA_WEB_BEARER_TOKEN=change-me +EOF +chmod 600 /opt/pancakeslicer_data/pancakeslicer.env +msg_ok "Configured PancakeSlicer" + +msg_info "Creating Service" +cat </etc/systemd/system/pancakeslicer.service +[Unit] +Description=PancakeSlicer +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/pancakeslicer/resources/engine +EnvironmentFile=/opt/pancakeslicer_data/pancakeslicer.env +Environment=HOME=/opt/pancakeslicer_data +Environment=ORCA_WEB_DATA_DIR=/opt/pancakeslicer_data/library +Environment=ORCA_WEB_JOB_ROOT=/opt/pancakeslicer_data/jobs +Environment=ORCA_WEB_STATIC=/opt/pancakeslicer/resources/web +Environment=ORCA_WEB_TOOL=/opt/pancakeslicer/resources/engine/nonplanar_slice_tool +Environment=ORCA_WEB_RESOURCES=/opt/pancakeslicer/resources/engine/resources +Environment=ORCA_WEB_SURFACE_MANIFEST=/opt/pancakeslicer/resources/engine/surface-manifest.json +Environment=ORCA_WEB_ARTIFACT_QUALIFICATION=/opt/pancakeslicer/resources/engine/artifact-qualification.ready +Environment=ORCA_WEB_SOURCE_URL=https://github.com/ZimengXiong/PancakeSlicer/releases/tag/v$(cat ~/.pancakeslicer) +ExecStart=/opt/pancakeslicer/resources/engine/orca-webapp-server +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now pancakeslicer +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/json/pancakeslicer.json b/json/pancakeslicer.json new file mode 100644 index 0000000000..f10e65871d --- /dev/null +++ b/json/pancakeslicer.json @@ -0,0 +1,46 @@ +{ + "name": "PancakeSlicer", + "slug": "pancakeslicer", + "categories": [ + 0 + ], + "date_created": "2026-11-18", + "type": "ct", + "platforms": ["pve"], + "architectures": ["amd64"], + "updateable": true, + "privileged": false, + "interface_port": 6868, + "documentation": "https://github.com/ZimengXiong/PancakeSlicer/blob/main/README.md", + "website": "https://pancake.cooking/", + "repository": "https://github.com/ZimengXiong/PancakeSlicer", + "logo": "https://raw.githubusercontent.com/ZimengXiong/PancakeSlicer/main/web/public/logo.svg", + "description": "PancakeSlicer is a self-hostable, web-based slicer for non-planar 3D printing, built on the OrcaSlicer engine. One central instance gives a whole household or makerspace a single shared set of printers, filaments and profiles reachable from any browser, with dynamic profiles that adapt to nozzle size and layer height instead of a profile per combination.", + "install_methods": [ + { + "type": "default", + "script": "ct/pancakeslicer.sh", + "resources": { + "cpu": 4, + "ram": 8192, + "hdd": 10, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Non-planar slicing is experimental and can damage a printer. Review the G-code preview before every print and supervise non-planar jobs.", + "type": "warning" + }, + { + "text": "The service has no authentication by default and printer connections default to LAN. Anyone who can reach http://:6868 can add printers and start prints. Before exposing this somewhere where that might be a problem, either: uncomment and give a value to ORCA_WEB_BEARER_TOKEN in /opt/pancakeslicer_data/pancakeslicer.env for the built-in auth then restart the service, or put it behind an authed reverse proxy.", + "type": "warning" + } + ] +} From 8b1e4289ba580e73007bbad192b397a262a7a0b5 Mon Sep 17 00:00:00 2001 From: Jack B-W Date: Wed, 18 Nov 2026 15:35:06 -0500 Subject: [PATCH 2/2] Add: PancakeSlicer --- ct/pancakeslicer.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/pancakeslicer.sh b/ct/pancakeslicer.sh index b5ead27e1c..cd29967d04 100644 --- a/ct/pancakeslicer.sh +++ b/ct/pancakeslicer.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" _cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")