Fix: CICD

This commit is contained in:
xiaoyeliu
2025-11-17 11:52:21 +08:00
parent 145925c24a
commit e4d902220d
6 changed files with 13 additions and 61 deletions

View File

@@ -70,7 +70,7 @@ jobs:
flatpak:
name: "Flatpak"
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-47
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
options: --privileged
volumes:
- /usr/local/lib/android:/usr/local/lib/android

View File

@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## Overview
OrcaSlicer is an open-source 3D slicer application forked from Bambu Studio, built using C++ with wxWidgets for the GUI and CMake as the build system. The project uses a modular architecture with separate libraries for core slicing functionality, GUI components, and platform-specific code.
Snapmaker_Orca is an open-source 3D slicer application forked from Bambu Studio, built using C++ with wxWidgets for the GUI and CMake as the build system. The project uses a modular architecture with separate libraries for core slicing functionality, GUI components, and platform-specific code.
## Build Commands
@@ -240,7 +240,7 @@ Run individual test suites:
### Codebase Navigation
- Use search tools extensively - codebase has 500k+ lines
- Key entry points: `src/OrcaSlicer.cpp` for application startup
- Key entry points: `src/Snapmaker_Orca.cpp` for application startup
- Core slicing: `libslic3r/Print.cpp` orchestrates the slicing pipeline
- Configuration: `PrintConfig.cpp` defines all print/printer/material settings

View File

@@ -209,7 +209,7 @@ if [[ -n "${BUILD_DEPS}" ]] ; then
fi
if [[ -n "${BUILD_ORCA}" ]] ; then
echo "Configuring OrcaSlicer..."
echo "Configuring Snapmaker_Orca..."
if [[ -n "${CLEAN_BUILD}" ]] ; then
rm -fr build
fi
@@ -229,7 +229,7 @@ if [[ -n "${BUILD_ORCA}" ]] ; then
BUILD_ARGS+=(-DORCA_UPDATER_SIG_KEY="${ORCA_UPDATER_SIG_KEY}")
fi
echo "Configuring OrcaSlicer..."
echo "Configuring Snapmaker_Orca..."
set -x
cmake -S . -B build "${CMAKE_C_CXX_COMPILER_CLANG[@]}" "${CMAKE_LLD_LINKER_ARGS[@]}" -G "Ninja Multi-Config" \
-DSLIC3R_PCH="${SLIC3R_PRECOMPILED_HEADERS}" \
@@ -240,11 +240,11 @@ if [[ -n "${BUILD_ORCA}" ]] ; then
"${BUILD_ARGS[@]}"
set +x
echo "done"
echo "Building OrcaSlicer ..."
echo "Building Snapmaker_Orca ..."
if [[ -n "${BUILD_DEBUG}" ]] ; then
cmake --build build --config Debug --target OrcaSlicer
cmake --build build --config Debug --target Snapmaker_Orca
else
cmake --build build --config Release --target OrcaSlicer
cmake --build build --config Release --target Snapmaker_Orca
fi
echo "Building Snapmaker_Orca_profile_validator .."
if [[ -n "${BUILD_DEBUG}" ]] ; then

View File

@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>io.github.softfever.Snapmaker_Orca</id>
<launchable type="desktop-id">io.github.Snapmaker.Snapmaker_Orca.desktop</launchable>
<provides>
<id>io.github.Snapmaker.Snapmaker_Orca.desktop</id>
</provides>
<name>Snapmaker_Orca</name>
<!-- hehe hadess @ppd
... seriously though, thanks -->
<summary>Get even more perfect prints!</summary>
<developer_name>SoftFever</developer_name>
<url type="homepage">https://github.com/Snapmaker/OrcaSlicer</url>
<url type="help">https://github.com/SoftFever/OrcaSlicer/wiki</url>
<url type="bugtracker">https://github.com/Snapamker/OrcaSlicer/issues/</url>
<url type="donation">https://ko-fi.com/SoftFever</url>
<metadata_license>0BSD</metadata_license>
<project_license>AGPL-3.0-only</project_license>
<content_rating type="oars-1.1" />
<requires>
<display_length compare="gt">768</display_length>
</requires>
<recommends>
<control>keyboard</control>
<control>pointing</control>
</recommends>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/powpingdone/com.github.softfever.orcaslicer/master/images/1.png</image>
<caption>A model ready to be sliced on a buildplate.</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/powpingdone/com.github.softfever.orcaslicer/master/images/2.png
</image>
<caption>A calibration test ready to be printed out.</caption>
</screenshot>
</screenshots>
<description>
<p>A powerful, free and open-source 3D printer slicer that features cutting-edge technology.</p>
</description>
<branding>
<color type="primary" scheme_preference="light">#009688</color>
</branding>
<releases>
<release version="2.0.0-951fc8e" date="2024-01-30"> <url>https://github.com/SoftFever/OrcaSlicer/commit/951fc8e98a0d5ca0ccb254315646ce7889a44836</url>
</release>
</releases>
</component>

View File

@@ -1,4 +1,4 @@
app-id: io.github.softfever.Snapmaker_Orca
app-id: io.github.Snapmaker.Snapmaker_Orca
runtime: org.gnome.Platform
runtime-version: "48"
sdk: org.gnome.Sdk
@@ -16,7 +16,7 @@ finish-args:
- --filesystem=/media
- --filesystem=/run/spnav.sock:ro
# Allow Snapmaker_Orca to talk to other instances
- --talk-name=io.github.softfever.Snapmaker_Orca.InstanceCheck.*
- --talk-name=io.github.Snapmaker.Snapmaker_Orca.InstanceCheck.*
- --system-talk-name=org.freedesktop.UDisks2
- --env=SPNAV_SOCKET=/run/spnav.sock
@@ -305,7 +305,7 @@ modules:
# AppData metainfo for Gnome Software & Co.
- type: file
path: io.github.softfever.Snapmaker_Orca.metainfo.xml
path: io.github.Snapmaker.Snapmaker_Orca.metainfo.xml
# start-up script
- type: file

View File

@@ -95,9 +95,9 @@ if(ORCA_TOOLS)
MACOSX_BUNDLE_BUNDLE_NAME "Snapmaker_Orca Profile Validator"
MACOSX_BUNDLE_BUNDLE_VERSION "${SLIC3R_VERSION}"
MACOSX_BUNDLE_SHORT_VERSION_STRING "${SLIC3R_VERSION}"
MACOSX_BUNDLE_IDENTIFIER "com.softfever.Snapmaker_Orca.profile-validator"
MACOSX_BUNDLE_IDENTIFIER "com.Snapmaker.Snapmaker_Orca.profile-validator"
MACOSX_BUNDLE_COPYRIGHT "© 2024 SoftFever"
MACOSX_BUNDLE_GUI_IDENTIFIER "com.softfever.Snapmaker_Orca.profile-validator"
MACOSX_BUNDLE_GUI_IDENTIFIER "com.Snapmaker.Snapmaker_Orca.profile-validator"
)
else()
add_executable(Snapmaker_Orca_profile_validator dev-utils/Snapmaker_Orca_profile_validator.cpp)