mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Merge branch 'Ultimaker:main' into main
This commit is contained in:
commit
78e0192df5
6095 changed files with 269605 additions and 271625 deletions
33
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
33
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
<!-- Please include a summary of which issue is fixed or feature was added. Please also include relevant motivation and context.
|
||||||
|
If this pull request adds settings definitions for machines/materials, list them here.
|
||||||
|
|
||||||
|
This fixes... OR This improves... -->
|
||||||
|
|
||||||
|
## Type of change
|
||||||
|
|
||||||
|
<!-- Please delete options that are not relevant. -->
|
||||||
|
|
||||||
|
- [ ] Bug fix (non-breaking change which fixes an issue)
|
||||||
|
- [ ] New feature (non-breaking change which adds functionality)
|
||||||
|
- [ ] Printer definition file(s)
|
||||||
|
- [ ] Translations
|
||||||
|
|
||||||
|
# How Has This Been Tested?
|
||||||
|
|
||||||
|
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->
|
||||||
|
|
||||||
|
- [ ] Test A
|
||||||
|
- [ ] Test B
|
||||||
|
|
||||||
|
**Test Configuration**:
|
||||||
|
* Operating System:
|
||||||
|
|
||||||
|
# Checklist:
|
||||||
|
<!-- Check if relevant -->
|
||||||
|
|
||||||
|
- [ ] My code follows the style guidelines of this project as described in [UltiMaker Meta](https://github.com/Ultimaker/Meta) and [Cura QML best practices](https://github.com/Ultimaker/Cura/wiki/QML-Best-Practices)
|
||||||
|
- [ ] I have read the [Contribution guide](https://github.com/Ultimaker/Cura/blob/main/contributing.md)
|
||||||
|
- [ ] I have commented my code, particularly in hard-to-understand areas
|
||||||
|
- [ ] I have uploaded any files required to test this change
|
59
.github/workflows/conan-package-create.yml
vendored
59
.github/workflows/conan-package-create.yml
vendored
|
@ -51,10 +51,8 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
|
||||||
CONAN_PASSWORD_CURA: ${{ secrets.CONAN_PASS }}
|
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
|
||||||
CONAN_LOGIN_USERNAME_CURA_CE: ${{ secrets.CONAN_USER }}
|
|
||||||
CONAN_PASSWORD_CURA_CE: ${{ secrets.CONAN_PASS }}
|
|
||||||
CONAN_LOG_RUN_TO_OUTPUT: 1
|
CONAN_LOG_RUN_TO_OUTPUT: 1
|
||||||
CONAN_LOGGING_LEVEL: ${{ inputs.conan_logging_level }}
|
CONAN_LOGGING_LEVEL: ${{ inputs.conan_logging_level }}
|
||||||
CONAN_NON_INTERACTIVE: 1
|
CONAN_NON_INTERACTIVE: 1
|
||||||
|
@ -75,7 +73,8 @@ jobs:
|
||||||
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
run: pip install -r .github/workflows/requirements-conan-package.txt
|
run: pip install -r https://raw.githubusercontent.com/Ultimaker/Cura/main/.github/workflows/requirements-conan-package.txt
|
||||||
|
# Note the runner requirements are always installed from the main branch in the Ultimaker/Cura repo
|
||||||
|
|
||||||
- name: Use Conan download cache (Bash)
|
- name: Use Conan download cache (Bash)
|
||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' }}
|
||||||
|
@ -108,9 +107,13 @@ jobs:
|
||||||
if: ${{ runner.os == 'Macos' }}
|
if: ${{ runner.os == 'Macos' }}
|
||||||
run: brew install autoconf automake ninja
|
run: brew install autoconf automake ninja
|
||||||
|
|
||||||
|
# NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest.
|
||||||
|
# This is maybe because grub caches the disk it uses last time, which is recreated each time.
|
||||||
- name: Install Linux system requirements
|
- name: Install Linux system requirements
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
run: |
|
||||||
|
sudo rm /var/cache/debconf/config.dat
|
||||||
|
sudo dpkg --configure -a
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade
|
sudo apt upgrade
|
||||||
|
@ -140,48 +143,16 @@ jobs:
|
||||||
if: ${{ inputs.conan_config_branch == '' }}
|
if: ${{ inputs.conan_config_branch == '' }}
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
|
|
||||||
- name: Create the lock file
|
- name: Add Cura private Artifactory remote
|
||||||
if: ${{ inputs.build_info }}
|
run: conan remote add cura-private https://ultimaker.jfrog.io/artifactory/api/conan/cura-private True
|
||||||
run: |
|
|
||||||
conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }}000${{ inputs.build_id }}
|
|
||||||
conan lock create --reference ${{ inputs.recipe_id_full }} --lockfile-out=conan.lock
|
|
||||||
|
|
||||||
- name: Create the Packages using lockfile
|
|
||||||
if: ${{ inputs.build_info }}
|
|
||||||
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update --lockfile=conan.lock --lockfile-out=conan.lock
|
|
||||||
|
|
||||||
- name: Create the Packages
|
- name: Create the Packages
|
||||||
if: ${{ ! inputs.build_info }}
|
|
||||||
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update
|
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update
|
||||||
|
|
||||||
- name: Create the build info
|
|
||||||
if: ${{ inputs.build_info }}
|
|
||||||
run: conan_build_info --v2 create buildinfo.json --lockfile conan.lock --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }}
|
|
||||||
|
|
||||||
- name: Upload the Package(s)
|
- name: Upload the Package(s)
|
||||||
if: always()
|
if: ${{ always() && inputs.conan_upload_community }}
|
||||||
run: conan upload "*" -r cura --all -c
|
run: conan upload ${{ inputs.recipe_id_full }} -r cura --all -c
|
||||||
|
|
||||||
- name: Upload the build info
|
- name: Upload the Package(s) to the private Artifactory
|
||||||
if: ${{ inputs.build_info }}
|
if: ${{ always() && ! inputs.conan_upload_community }}
|
||||||
run: |
|
run: conan upload ${{ inputs.recipe_id_full }} -r cura-private --all -c
|
||||||
conan_build_info --v2 publish buildinfo.json --url https://ultimaker.jfrog.io/artifactory --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }}
|
|
||||||
conan_build_info --v2 stop
|
|
||||||
|
|
||||||
- name: Upload the Package(s) community
|
|
||||||
if: ${{ always() && inputs.conan_upload_community == true }}
|
|
||||||
run: conan upload "*" -r cura-ce -c
|
|
||||||
|
|
||||||
- name: Upload the log and build artifacts
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: log-${{ inputs.runs_on }}-${{ runner.arch }}
|
|
||||||
path: |
|
|
||||||
buildinfo.json
|
|
||||||
conan.lock
|
|
||||||
conanbuildinfo.txt
|
|
||||||
conaninfo.txt
|
|
||||||
graph_info.json
|
|
||||||
build/**
|
|
||||||
retention-days: 1
|
|
||||||
|
|
208
.github/workflows/conan-package.yml
vendored
208
.github/workflows/conan-package.yml
vendored
|
@ -7,110 +7,134 @@ name: conan-package
|
||||||
# It should run on pushes against main or CURA-* branches, but it will only create the binaries for main and release branches
|
# It should run on pushes against main or CURA-* branches, but it will only create the binaries for main and release branches
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
create_binaries_windows:
|
create_binaries_windows:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
description: 'create binaries Windows'
|
description: 'create binaries Windows'
|
||||||
create_binaries_linux:
|
create_binaries_linux:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
description: 'create binaries Linux'
|
description: 'create binaries Linux'
|
||||||
create_binaries_macos:
|
create_binaries_macos:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
description: 'create binaries Macos'
|
description: 'create binaries Macos'
|
||||||
|
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'plugins/**'
|
- 'plugins/**'
|
||||||
- 'resources/**'
|
- 'resources/**'
|
||||||
- 'cura/**'
|
- 'cura/**'
|
||||||
- 'icons/**'
|
- 'icons/**'
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'packaging/**'
|
- 'packaging/**'
|
||||||
- '.github/workflows/conan-*.yml'
|
- '.github/workflows/conan-*.yml'
|
||||||
- '.github/workflows/notify.yml'
|
- '.github/workflows/notify.yml'
|
||||||
- '.github/workflows/requirements-conan-package.txt'
|
- '.github/workflows/requirements-conan-package.txt'
|
||||||
- 'requirements*.txt'
|
- 'requirements*.txt'
|
||||||
- 'conanfile.py'
|
- 'conanfile.py'
|
||||||
- 'conandata.yml'
|
- 'conandata.yml'
|
||||||
- 'GitVersion.yml'
|
- 'GitVersion.yml'
|
||||||
- '*.jinja'
|
- '*.jinja'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'CURA-*'
|
- 'CURA-*'
|
||||||
- '[1-9].[0-9]'
|
- '[1-9].[0-9]'
|
||||||
- '[1-9].[0-9][0-9]'
|
- '[1-9].[0-9][0-9]'
|
||||||
tags:
|
tags:
|
||||||
- '[1-9].[0-9].[0-9]*'
|
- '[1-9].[0-9].[0-9]*'
|
||||||
- '[1-9].[0-9].[0-9]'
|
- '[1-9].[0-9].[0-9]'
|
||||||
- '[1-9].[0-9][0-9].[0-9]*'
|
- '[1-9].[0-9][0-9].[0-9]*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
||||||
|
CONAN_PASSWORD_CURA: ${{ secrets.CONAN_PASS }}
|
||||||
|
CONAN_LOGIN_USERNAME_CURA_CE: ${{ secrets.CONAN_USER }}
|
||||||
|
CONAN_PASSWORD_CURA_CE: ${{ secrets.CONAN_PASS }}
|
||||||
|
CONAN_LOG_RUN_TO_OUTPUT: 1
|
||||||
|
CONAN_LOGGING_LEVEL: ${{ inputs.conan_logging_level }}
|
||||||
|
CONAN_NON_INTERACTIVE: 1
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
conan-recipe-version:
|
conan-recipe-version:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
||||||
|
with:
|
||||||
|
project_name: cura
|
||||||
|
|
||||||
|
conan-package-create-linux:
|
||||||
|
needs: [ conan-recipe-version ]
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Cache Conan data
|
||||||
|
id: cache-conan
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
project_name: cura
|
path: ~/.conan
|
||||||
|
key: ${{ runner.os }}-conan
|
||||||
|
|
||||||
conan-package-export:
|
- name: Setup Python and pip
|
||||||
permissions:
|
uses: actions/setup-python@v4
|
||||||
contents: read
|
|
||||||
|
|
||||||
needs: [ conan-recipe-version ]
|
|
||||||
uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@main
|
|
||||||
with:
|
with:
|
||||||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
|
python-version: '3.11.x'
|
||||||
recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
|
cache: 'pip'
|
||||||
runs_on: 'ubuntu-20.04'
|
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
||||||
python_version: '3.10.x'
|
|
||||||
conan_logging_level: 'info'
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
conan-package-create-linux:
|
- name: Install Python requirements for runner
|
||||||
permissions:
|
run: pip install -r .github/workflows/requirements-conan-package.txt
|
||||||
contents: read
|
|
||||||
|
|
||||||
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux) }}
|
# NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest.
|
||||||
needs: [ conan-recipe-version, conan-package-export ]
|
# This is maybe because grub caches the disk it uses last time, which is recreated each time.
|
||||||
|
- name: Install Linux system requirements
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
run: |
|
||||||
|
sudo rm /var/cache/debconf/config.dat
|
||||||
|
sudo dpkg --configure -a
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
|
sudo apt update
|
||||||
|
sudo apt upgrade
|
||||||
|
sudo apt install efibootmgr build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev pkg-config flex bison g++-12 gcc-12 -y
|
||||||
|
sudo apt install g++-12 gcc-12 -y
|
||||||
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
|
||||||
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
|
||||||
|
|
||||||
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main
|
- name: Create the default Conan profile
|
||||||
with:
|
run: conan profile new default --detect --force
|
||||||
project_name: ${{ needs.conan-recipe-version.outputs.project_name }}
|
|
||||||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
|
|
||||||
build_id: 1
|
|
||||||
runs_on: 'ubuntu-20.04'
|
|
||||||
python_version: '3.10.x'
|
|
||||||
conan_logging_level: 'info'
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
notify-export:
|
- name: Get Conan configuration
|
||||||
if: ${{ always() }}
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
needs: [ conan-recipe-version, conan-package-export ]
|
|
||||||
|
|
||||||
uses: ultimaker/cura/.github/workflows/notify.yml@main
|
- name: Create the Packages
|
||||||
with:
|
run: conan create . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} --build=missing --update -o ${{ needs.conan-recipe-version.outputs.project_name }}:devtools=True
|
||||||
success: ${{ contains(join(needs.*.result, ','), 'success') }}
|
|
||||||
success_title: "New Conan recipe exported in ${{ github.repository }}"
|
|
||||||
success_body: "Exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
|
||||||
failure_title: "Failed to export Conan Export in ${{ github.repository }}"
|
|
||||||
failure_body: "Failed to exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
notify-create:
|
- name: Create the latest alias
|
||||||
if: ${{ always() && ((github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux)) }}
|
if: always()
|
||||||
needs: [ conan-recipe-version, conan-package-create-linux ]
|
run: conan alias ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
|
||||||
|
|
||||||
uses: ultimaker/cura/.github/workflows/notify.yml@main
|
- name: Upload the Package(s)
|
||||||
with:
|
if: always()
|
||||||
success: ${{ contains(join(needs.*.result, ','), 'success') }}
|
run: |
|
||||||
success_title: "New binaries created in ${{ github.repository }}"
|
conan upload ${{ needs.conan-recipe-version.outputs.recipe_id_full }} -r cura --all -c
|
||||||
success_body: "Created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
conan upload ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura -c
|
||||||
failure_title: "Failed to create binaries in ${{ github.repository }}"
|
|
||||||
failure_body: "Failed to created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
notify-create:
|
||||||
secrets: inherit
|
if: ${{ always() && (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) }}
|
||||||
|
needs: [ conan-recipe-version, conan-package-create-linux ]
|
||||||
|
|
||||||
|
uses: ultimaker/cura/.github/workflows/notify.yml@main
|
||||||
|
with:
|
||||||
|
success: ${{ contains(join(needs.*.result, ','), 'success') }}
|
||||||
|
success_title: "New binaries created in ${{ github.repository }}"
|
||||||
|
success_body: "Created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
||||||
|
failure_title: "Failed to create binaries in ${{ github.repository }}"
|
||||||
|
failure_body: "Failed to created binaries for ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
|
||||||
|
secrets: inherit
|
||||||
|
|
34
.github/workflows/conan-recipe-export.yml
vendored
34
.github/workflows/conan-recipe-export.yml
vendored
|
@ -37,10 +37,8 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
|
||||||
CONAN_PASSWORD_CURA: ${{ secrets.CONAN_PASS }}
|
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
|
||||||
CONAN_LOGIN_USERNAME_CURA_CE: ${{ secrets.CONAN_USER }}
|
|
||||||
CONAN_PASSWORD_CURA_CE: ${{ secrets.CONAN_PASS }}
|
|
||||||
CONAN_LOG_RUN_TO_OUTPUT: 1
|
CONAN_LOG_RUN_TO_OUTPUT: 1
|
||||||
CONAN_LOGGING_LEVEL: ${{ inputs.conan_logging_level }}
|
CONAN_LOGGING_LEVEL: ${{ inputs.conan_logging_level }}
|
||||||
CONAN_NON_INTERACTIVE: 1
|
CONAN_NON_INTERACTIVE: 1
|
||||||
|
@ -62,8 +60,9 @@ jobs:
|
||||||
|
|
||||||
- name: Install Python requirements and Create default Conan profile
|
- name: Install Python requirements and Create default Conan profile
|
||||||
run: |
|
run: |
|
||||||
pip install -r .github/workflows/requirements-conan-package.txt
|
pip install -r https://raw.githubusercontent.com/Ultimaker/Cura/main/.github/workflows/requirements-conan-package.txt
|
||||||
conan profile new default --detect
|
conan profile new default --detect
|
||||||
|
# Note the runner requirements are always installed from the main branch in the Ultimaker/Cura repo
|
||||||
|
|
||||||
- name: Cache Conan local repository packages
|
- name: Cache Conan local repository packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
@ -79,6 +78,9 @@ jobs:
|
||||||
if: ${{ inputs.conan_config_branch == '' }}
|
if: ${{ inputs.conan_config_branch == '' }}
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
|
|
||||||
|
- name: Add Cura private Artifactory remote
|
||||||
|
run: conan remote add cura-private https://ultimaker.jfrog.io/artifactory/api/conan/cura-private True
|
||||||
|
|
||||||
- name: Export the Package (binaries)
|
- name: Export the Package (binaries)
|
||||||
if: ${{ inputs.conan_export_binaries }}
|
if: ${{ inputs.conan_export_binaries }}
|
||||||
run: conan create . ${{ inputs.recipe_id_full }} --build=missing --update
|
run: conan create . ${{ inputs.recipe_id_full }} --build=missing --update
|
||||||
|
@ -87,20 +89,18 @@ jobs:
|
||||||
if: ${{ !inputs.conan_export_binaries }}
|
if: ${{ !inputs.conan_export_binaries }}
|
||||||
run: conan export . ${{ inputs.recipe_id_full }}
|
run: conan export . ${{ inputs.recipe_id_full }}
|
||||||
|
|
||||||
- name: Remove the latest alias
|
|
||||||
if: ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
|
|
||||||
run: |
|
|
||||||
conan remove ${{ inputs.recipe_id_latest }} -r cura -f || true
|
|
||||||
conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f || true
|
|
||||||
|
|
||||||
- name: Create the latest alias
|
- name: Create the latest alias
|
||||||
if: ${{ inputs.recipe_id_latest != '' && always() }}
|
if: always()
|
||||||
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
|
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
|
||||||
|
|
||||||
- name: Upload the Package(s)
|
- name: Upload the Package(s)
|
||||||
if: always()
|
if: ${{ always() && inputs.conan_upload_community }}
|
||||||
run: conan upload "*" -r cura --all -c
|
run: |
|
||||||
|
conan upload ${{ inputs.recipe_id_full }} -r cura --all -c
|
||||||
|
conan upload ${{ inputs.recipe_id_latest }} -r cura -c
|
||||||
|
|
||||||
- name: Upload the Package(s) community
|
- name: Upload the Package(s) to the private Artifactory
|
||||||
if: ${{ always() && inputs.conan_upload_community == true }}
|
if: ${{ always() && ! inputs.conan_upload_community }}
|
||||||
run: conan upload "*" -r cura-ce -c
|
run: |
|
||||||
|
conan upload ${{ inputs.recipe_id_full }} -r cura-private --all -c
|
||||||
|
conan upload ${{ inputs.recipe_id_latest }} -r cura-private -c
|
||||||
|
|
84
.github/workflows/conan-recipe-version.yml
vendored
84
.github/workflows/conan-recipe-version.yml
vendored
|
@ -7,6 +7,11 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
user:
|
||||||
|
required: false
|
||||||
|
default: ultimaker
|
||||||
|
type: string
|
||||||
|
|
||||||
additional_buildmetadata:
|
additional_buildmetadata:
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
@ -86,12 +91,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
from conans import tools
|
from conan.tools.scm import Version
|
||||||
from conans.errors import ConanException
|
from conan.errors import ConanException
|
||||||
from git import Repo
|
from git import Repo
|
||||||
|
|
||||||
repo = Repo('.')
|
repo = Repo('.')
|
||||||
user = "${{ github.repository_owner }}".lower()
|
user = "${{ inputs.user }}".lower()
|
||||||
project_name = "${{ inputs.project_name }}"
|
project_name = "${{ inputs.project_name }}"
|
||||||
event_name = "${{ github.event_name }}"
|
event_name = "${{ github.event_name }}"
|
||||||
issue_number = "${{ github.ref }}".split('/')[2]
|
issue_number = "${{ github.ref }}".split('/')[2]
|
||||||
|
@ -103,16 +108,16 @@ jobs:
|
||||||
# FIXME: for when we push a tag (such as an release)
|
# FIXME: for when we push a tag (such as an release)
|
||||||
channel = "testing"
|
channel = "testing"
|
||||||
if is_tag:
|
if is_tag:
|
||||||
branch_version = tools.Version(ref_name)
|
branch_version = Version(ref_name)
|
||||||
is_release_branch = True
|
is_release_branch = True
|
||||||
channel = "_"
|
channel = "_"
|
||||||
user = "_"
|
user = "_"
|
||||||
actual_version = f"{branch_version}"
|
actual_version = f"{branch_version}"
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
branch_version = tools.Version(repo.active_branch.name)
|
branch_version = Version(repo.active_branch.name)
|
||||||
except ConanException:
|
except ConanException:
|
||||||
branch_version = tools.Version('0.0.0')
|
branch_version = Version('0.0.0')
|
||||||
if ref_name == f"{branch_version.major}.{branch_version.minor}":
|
if ref_name == f"{branch_version.major}.{branch_version.minor}":
|
||||||
channel = 'stable'
|
channel = 'stable'
|
||||||
is_release_branch = True
|
is_release_branch = True
|
||||||
|
@ -125,16 +130,17 @@ jobs:
|
||||||
channel = f"pr_{issue_number}"
|
channel = f"pr_{issue_number}"
|
||||||
|
|
||||||
# %% Get the actual version
|
# %% Get the actual version
|
||||||
latest_branch_version = tools.Version("0.0.0")
|
latest_branch_version = Version("0.0.0")
|
||||||
latest_branch_tag = None
|
latest_branch_tag = None
|
||||||
for tag in repo.git.tag(merged = True).splitlines():
|
for tag in repo.active_branch.repo.tags:
|
||||||
if str(tag).startswith("firmware") or str(tag).startswith("master"):
|
if str(tag).startswith("firmware") or str(tag).startswith("master"):
|
||||||
continue # Quick-fix for the versioning scheme name of the embedded team in fdm_materials(_private) repo
|
continue # Quick-fix for the versioning scheme name of the embedded team in fdm_materials(_private) repo
|
||||||
try:
|
try:
|
||||||
version = tools.Version(tag)
|
version = Version(tag)
|
||||||
except ConanException:
|
except ConanException:
|
||||||
continue
|
continue
|
||||||
if version > latest_branch_version:
|
if version > latest_branch_version and version < Version("6.0.0"):
|
||||||
|
# FIXME: stupid old Cura tags 13.04 etc. keep popping up, als the fdm_material tag for firmware are messing with this
|
||||||
latest_branch_version = version
|
latest_branch_version = version
|
||||||
latest_branch_tag = repo.tag(tag)
|
latest_branch_tag = repo.tag(tag)
|
||||||
|
|
||||||
|
@ -145,12 +151,12 @@ jobs:
|
||||||
if commit == latest_branch_tag.commit:
|
if commit == latest_branch_tag.commit:
|
||||||
break
|
break
|
||||||
no_commits += 1
|
no_commits += 1
|
||||||
latest_branch_version_prerelease = latest_branch_version.prerelease
|
latest_branch_version_prerelease = latest_branch_version.pre
|
||||||
if latest_branch_version.prerelease and not "." in latest_branch_version.prerelease:
|
if latest_branch_version.pre and not "." in str(latest_branch_version.pre):
|
||||||
# The prerealese did not contain a version number, default it to 1
|
# The prerealese did not contain a version number, default it to 1
|
||||||
latest_branch_version_prerelease = f"{latest_branch_version.prerelease}.1"
|
latest_branch_version_prerelease = f"{latest_branch_version.pre}.1"
|
||||||
if event_name == "pull_request":
|
if event_name == "pull_request":
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version_prerelease.lower()}+{buildmetadata}pr_{issue_number}_{no_commits}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{str(latest_branch_version_prerelease).lower()}+{buildmetadata}pr_{issue_number}_{no_commits}"
|
||||||
channel_metadata = f"{channel}_{no_commits}"
|
channel_metadata = f"{channel}_{no_commits}"
|
||||||
else:
|
else:
|
||||||
if channel in ("stable", "_", ""):
|
if channel in ("stable", "_", ""):
|
||||||
|
@ -158,18 +164,34 @@ jobs:
|
||||||
else:
|
else:
|
||||||
channel_metadata = f"{channel}_{no_commits}"
|
channel_metadata = f"{channel}_{no_commits}"
|
||||||
if is_release_branch:
|
if is_release_branch:
|
||||||
if latest_branch_version.prerelease == "":
|
if latest_branch_version.pre == "" and branch_version > latest_branch_version:
|
||||||
|
actual_version = f"{branch_version.major}.{branch_version.minor}.0-beta.1+{buildmetadata}{channel_metadata}"
|
||||||
|
elif latest_branch_version.pre == "":
|
||||||
# An actual full release has been created, we are working on patch
|
# An actual full release has been created, we are working on patch
|
||||||
bump_up_patch = int(latest_branch_version.patch) + 1
|
bump_up_patch = int(str(latest_branch_version.patch)) + 1
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{bump_up_patch}-beta.1+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{bump_up_patch}-beta.1+{buildmetadata}{channel_metadata}"
|
||||||
|
elif latest_branch_version.pre is None:
|
||||||
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{int(latest_branch_version.patch.value) + 1}-beta.1+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
# An beta release has been created we are working toward a next beta or full release
|
# An beta release has been created we are working toward a next beta or full release
|
||||||
bump_up_release_tag = int(latest_branch_version.prerelease.split('.')[1]) + 1
|
bump_up_release_tag = int(str(latest_branch_version.pre).split('.')[1]) + 1
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{str(latest_branch_version.pre).split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
bump_up_minor = int(latest_branch_version.minor) + 1
|
max_branches_version = Version("0.0.0")
|
||||||
reset_patch = 0
|
branches_no_commits = no_commits
|
||||||
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{reset_patch}-alpha+{buildmetadata}{channel_metadata}"
|
for branch in repo.references:
|
||||||
|
try:
|
||||||
|
if "remotes/origin" in branch.abspath:
|
||||||
|
b_version = Version(branch.name.split("/")[-1])
|
||||||
|
if b_version < Version("6.0.0") and b_version > max_branches_version:
|
||||||
|
max_branches_version = b_version
|
||||||
|
branches_no_commits = repo.commit().count() - branch.commit.count()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
if max_branches_version > latest_branch_version:
|
||||||
|
actual_version = f"{max_branches_version.major}.{int(str(max_branches_version.minor)) + 1}.0-alpha+{buildmetadata}{channel}_{branches_no_commits}"
|
||||||
|
else:
|
||||||
|
actual_version = f"{latest_branch_version.major}.{int(str(latest_branch_version.minor)) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
|
|
||||||
# %% Set the environment output
|
# %% Set the environment output
|
||||||
output_env = os.environ["GITHUB_OUTPUT"]
|
output_env = os.environ["GITHUB_OUTPUT"]
|
||||||
|
@ -188,14 +210,14 @@ jobs:
|
||||||
f.writelines(f"semver_full={actual_version}\n")
|
f.writelines(f"semver_full={actual_version}\n")
|
||||||
f.writelines(f"is_release_branch={str(is_release_branch).lower()}\n")
|
f.writelines(f"is_release_branch={str(is_release_branch).lower()}\n")
|
||||||
|
|
||||||
print("::group::Conan Recipe Information")
|
summary_env = os.environ["GITHUB_STEP_SUMMARY"]
|
||||||
print(f"name = {project_name}")
|
with open(summary_env, "w") as f:
|
||||||
print(f"version = {actual_version}")
|
f.writelines(f"# {project_name}\n")
|
||||||
print(f"user = {user}")
|
f.writelines(f"name={project_name}\n")
|
||||||
print(f"channel = {channel}")
|
f.writelines(f"version={actual_version}\n")
|
||||||
print(f"recipe_id_full = {project_name}/{actual_version}@{user}/{channel}")
|
f.writelines(f"channel={channel}\n")
|
||||||
print(f"recipe_id_latest = {project_name}/latest@{user}/{channel}")
|
f.writelines(f"recipe_id_full={project_name}/{actual_version}@{user}/{channel}\n")
|
||||||
print(f"semver_full = {actual_version}")
|
f.writelines(f"recipe_id_latest={project_name}/latest@{user}/{channel}\n")
|
||||||
print(f"is_release_branch = {str(is_release_branch).lower()}")
|
f.writelines(f"semver_full={actual_version}\n")
|
||||||
print("::endgroup::")
|
f.writelines(f"is_release_branch={str(is_release_branch).lower()}\n")
|
||||||
shell: python
|
shell: python
|
||||||
|
|
51
.github/workflows/cura-all-installers.yml
vendored
51
.github/workflows/cura-all-installers.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
name: Cura All Installers
|
name: Cura All Installers
|
||||||
run-name: ${{ inputs.cura_conan_version }} for Windows ${{ inputs.build_windows }}, MacOS ${{ inputs.build_macos }}, Linux ${{ inputs.build_linux }}
|
run-name: ${{ inputs.cura_conan_version }} for exe ${{ inputs.build_windows_exe }}, msi ${{ inputs.build_windows_msi }}, dmg ${{ inputs.build_macos }}, pkg ${{ inputs.build_macos_installer }}, appimage ${{ inputs.build_linux }} - enterprise ${{ inputs.enterprise }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -34,8 +34,13 @@ on:
|
||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
build_windows:
|
build_windows_exe:
|
||||||
description: 'Build for Windows'
|
description: 'Build for Windows exe'
|
||||||
|
default: false
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
build_windows_msi:
|
||||||
|
description: 'Build for msi+pkg'
|
||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -45,7 +50,7 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
build_macos:
|
build_macos:
|
||||||
description: 'Build for MacOs'
|
description: 'Build dmg for MacOS'
|
||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -55,8 +60,8 @@ on:
|
||||||
- cron: '25 3 * * 1-5'
|
- cron: '25 3 * * 1-5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-installer-create:
|
windows-installer-create-exe:
|
||||||
if: ${{ inputs.build_windows }}
|
if: ${{ inputs.build_windows_exe }}
|
||||||
uses: ./.github/workflows/cura-installer.yml
|
uses: ./.github/workflows/cura-installer.yml
|
||||||
with:
|
with:
|
||||||
platform: 'windows-2022'
|
platform: 'windows-2022'
|
||||||
|
@ -67,6 +72,22 @@ jobs:
|
||||||
enterprise: ${{ inputs.enterprise }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging }}
|
staging: ${{ inputs.staging }}
|
||||||
installer: ${{ inputs.installer }}
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: false
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
windows-installer-create-msi:
|
||||||
|
if: ${{ inputs.build_windows_msi }}
|
||||||
|
uses: ./.github/workflows/cura-installer.yml
|
||||||
|
with:
|
||||||
|
platform: 'windows-2022'
|
||||||
|
os_name: 'win64'
|
||||||
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
conan_config: ${{ inputs.conan_config }}
|
||||||
|
enterprise: ${{ inputs.enterprise }}
|
||||||
|
staging: ${{ inputs.staging }}
|
||||||
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
linux-installer-create:
|
linux-installer-create:
|
||||||
|
@ -81,6 +102,7 @@ jobs:
|
||||||
enterprise: ${{ inputs.enterprise }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging }}
|
staging: ${{ inputs.staging }}
|
||||||
installer: ${{ inputs.installer }}
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: false
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
linux-modern-installer-create:
|
linux-modern-installer-create:
|
||||||
|
@ -95,6 +117,22 @@ jobs:
|
||||||
enterprise: ${{ inputs.enterprise }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging }}
|
staging: ${{ inputs.staging }}
|
||||||
installer: ${{ inputs.installer }}
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: false
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
macos-dmg-create:
|
||||||
|
if: ${{ inputs.build_macos }}
|
||||||
|
uses: ./.github/workflows/cura-installer.yml
|
||||||
|
with:
|
||||||
|
platform: 'macos-11'
|
||||||
|
os_name: 'mac'
|
||||||
|
cura_conan_version: ${{ inputs.cura_conan_version }}
|
||||||
|
conan_args: ${{ inputs.conan_args }}
|
||||||
|
conan_config: ${{ inputs.conan_config }}
|
||||||
|
enterprise: ${{ inputs.enterprise }}
|
||||||
|
staging: ${{ inputs.staging }}
|
||||||
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: false
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
macos-installer-create:
|
macos-installer-create:
|
||||||
|
@ -109,4 +147,5 @@ jobs:
|
||||||
enterprise: ${{ inputs.enterprise }}
|
enterprise: ${{ inputs.enterprise }}
|
||||||
staging: ${{ inputs.staging }}
|
staging: ${{ inputs.staging }}
|
||||||
installer: ${{ inputs.installer }}
|
installer: ${{ inputs.installer }}
|
||||||
|
msi_installer: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
162
.github/workflows/cura-installer.yml
vendored
162
.github/workflows/cura-installer.yml
vendored
|
@ -44,6 +44,11 @@ on:
|
||||||
default: true
|
default: true
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
msi_installer:
|
||||||
|
description: 'Create the msi'
|
||||||
|
default: false
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
|
||||||
|
@ -57,10 +62,12 @@ env:
|
||||||
MAC_NOTARIZE_USER: ${{ secrets.MAC_NOTARIZE_USER }}
|
MAC_NOTARIZE_USER: ${{ secrets.MAC_NOTARIZE_USER }}
|
||||||
MAC_NOTARIZE_PASS: ${{ secrets.MAC_NOTARIZE_PASS }}
|
MAC_NOTARIZE_PASS: ${{ secrets.MAC_NOTARIZE_PASS }}
|
||||||
MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
|
MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
|
||||||
MACOS_CERT_PASS: ${{ secrets.MACOS_CERT_PASS }}
|
MACOS_CERT_INSTALLER_P12: ${{ secrets.MACOS_CERT_INSTALLER_P12 }}
|
||||||
MACOS_CERT_USER: ${{ secrets.MACOS_CERT_USER }}
|
MACOS_CERT_USER: ${{ secrets.MACOS_CERT_USER }}
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
MACOS_CERT_PASSPHRASE: ${{ secrets.MACOS_CERT_PASSPHRASE }}
|
MACOS_CERT_PASSPHRASE: ${{ secrets.MACOS_CERT_PASSPHRASE }}
|
||||||
|
WIN_CERT_INSTALLER_CER: ${{ secrets.WIN_CERT_INSTALLER_CER }}
|
||||||
|
WIN_CERT_INSTALLER_CER_PASS: ${{ secrets.WIN_CERT_INSTALLER_CER_PASS }}
|
||||||
CURA_CONAN_VERSION: ${{ inputs.cura_conan_version }}
|
CURA_CONAN_VERSION: ${{ inputs.cura_conan_version }}
|
||||||
ENTERPRISE: ${{ inputs.enterprise }}
|
ENTERPRISE: ${{ inputs.enterprise }}
|
||||||
STAGING: ${{ inputs.staging }}
|
STAGING: ${{ inputs.staging }}
|
||||||
|
@ -81,7 +88,8 @@ jobs:
|
||||||
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
run: pip install -r .github/workflows/requirements-conan-package.txt
|
run: pip install -r https://raw.githubusercontent.com/Ultimaker/Cura/main/.github/workflows/requirements-conan-package.txt
|
||||||
|
# Note the runner requirements are always installed from the main branch in the Ultimaker/Cura repo
|
||||||
|
|
||||||
- name: Use Conan download cache (Bash)
|
- name: Use Conan download cache (Bash)
|
||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' }}
|
||||||
|
@ -112,11 +120,19 @@ jobs:
|
||||||
|
|
||||||
- name: Install MacOS system requirements
|
- name: Install MacOS system requirements
|
||||||
if: ${{ runner.os == 'Macos' }}
|
if: ${{ runner.os == 'Macos' }}
|
||||||
run: brew install autoconf automake ninja create-dmg
|
run: brew install autoconf automake ninja create-dmg # Delete create-dmg when deprecating dmg
|
||||||
|
|
||||||
|
- name: Hack needed specifically for ubuntu-22.04 from mid-Feb 2023 onwards
|
||||||
|
if: ${{ runner.os == 'Linux' && startsWith(inputs.platform, 'ubuntu-22.04') }}
|
||||||
|
run: sudo apt remove libodbc2 libodbcinst2 unixodbc-common -y
|
||||||
|
|
||||||
|
# NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest.
|
||||||
|
# This is maybe because grub caches the disk it uses last time, which is recreated each time.
|
||||||
- name: Install Linux system requirements
|
- name: Install Linux system requirements
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
run: |
|
||||||
|
sudo rm /var/cache/debconf/config.dat
|
||||||
|
sudo dpkg --configure -a
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade
|
sudo apt upgrade
|
||||||
|
@ -126,14 +142,14 @@ jobs:
|
||||||
echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
|
echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install GCC-12 on ubuntu-22.04
|
- name: Install GCC-12 on ubuntu-22.04
|
||||||
if: ${{ startsWith(inputs.runs_on, 'ubuntu-22.04') }}
|
if: ${{ startsWith(inputs.platform, 'ubuntu-22.04') }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt install g++-12 gcc-12 -y
|
sudo apt install g++-12 gcc-12 -y
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
|
||||||
|
|
||||||
- name: Use GCC-10 on ubuntu-20.04
|
- name: Use GCC-10 on ubuntu-20.04
|
||||||
if: ${{ startsWith(inputs.runs_on, 'ubuntu-20.04') }}
|
if: ${{ startsWith(inputs.platform, 'ubuntu-20.04') }}
|
||||||
run: |
|
run: |
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
|
||||||
|
@ -145,24 +161,42 @@ jobs:
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: echo -n "$GPG_PRIVATE_KEY" | base64 --decode | gpg --import
|
run: echo -n "$GPG_PRIVATE_KEY" | base64 --decode | gpg --import
|
||||||
|
|
||||||
- name: Configure Macos keychain (Bash)
|
- name: Configure Macos keychain Developer Cert(Bash)
|
||||||
id: macos-keychain
|
id: macos-keychain-developer-cert
|
||||||
if: ${{ runner.os == 'Macos' }}
|
if: ${{ runner.os == 'Macos' }}
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v1
|
||||||
with:
|
with:
|
||||||
|
keychain-password: ${{ secrets.MACOS_KEYCHAIN_PASSWORD }}
|
||||||
p12-file-base64: ${{ secrets.MACOS_CERT_P12 }}
|
p12-file-base64: ${{ secrets.MACOS_CERT_P12 }}
|
||||||
p12-password: ${{ secrets.MACOS_CERT_PASSPHRASE }}
|
p12-password: ${{ secrets.MACOS_CERT_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Clean Conan local cache
|
- name: Configure Macos keychain Installer Cert (Bash)
|
||||||
if: ${{ inputs.conan_clean_local_cache }}
|
id: macos-keychain-installer-cert
|
||||||
run: conan remove "*" -f
|
if: ${{ runner.os == 'Macos' }}
|
||||||
|
uses: apple-actions/import-codesign-certs@v1
|
||||||
|
with:
|
||||||
|
keychain-password: ${{ secrets.MACOS_KEYCHAIN_PASSWORD }}
|
||||||
|
create-keychain: false # keychain is created in previous use of action.
|
||||||
|
p12-file-base64: ${{ secrets.MACOS_CERT_INSTALLER_P12 }}
|
||||||
|
p12-password: ${{ secrets.MACOS_CERT_PASSPHRASE }}
|
||||||
|
|
||||||
|
- name: Create PFX certificate from BASE64_PFX_CONTENT secret
|
||||||
|
if: ${{ runner.os == 'Windows' }}
|
||||||
|
id: create-pfx
|
||||||
|
env:
|
||||||
|
PFX_CONTENT: ${{ secrets.WIN_CERT_INSTALLER_CER }}
|
||||||
|
run: |
|
||||||
|
$pfxPath = Join-Path -Path $env:RUNNER_TEMP -ChildPath "cert.pfx";
|
||||||
|
$encodedBytes = [System.Convert]::FromBase64String($env:PFX_CONTENT);
|
||||||
|
Set-Content $pfxPath -Value $encodedBytes -AsByteStream;
|
||||||
|
echo "PFX_PATH=$pfxPath" >> $env:GITHUB_OUTPUT;
|
||||||
|
|
||||||
- name: Get Conan configuration from branch
|
- name: Get Conan configuration from branch
|
||||||
if: ${{ inputs.conan_config_branch != '' }}
|
if: ${{ inputs.conan_config != '' }}
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git -a "-b ${{ inputs.conan_config_branch }}"
|
run: conan config install https://github.com/Ultimaker/conan-config.git -a "-b ${{ inputs.conan_config }}"
|
||||||
|
|
||||||
- name: Get Conan configuration
|
- name: Get Conan configuration
|
||||||
if: ${{ inputs.conan_config_branch == '' }}
|
if: ${{ inputs.conan_config == '' }}
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
|
|
||||||
- name: Create the Packages (Bash)
|
- name: Create the Packages (Bash)
|
||||||
|
@ -182,6 +216,7 @@ jobs:
|
||||||
- name: Set Environment variables for Cura (Powershell)
|
- name: Set Environment variables for Cura (Powershell)
|
||||||
if: ${{ runner.os == 'Windows' }}
|
if: ${{ runner.os == 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
|
echo "${Env:WIX}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
.\cura_inst\Scripts\activate_github_actions_env.ps1
|
.\cura_inst\Scripts\activate_github_actions_env.ps1
|
||||||
.\cura_inst\Scripts\activate_github_actions_version_env.ps1
|
.\cura_inst\Scripts\activate_github_actions_version_env.ps1
|
||||||
|
|
||||||
|
@ -189,7 +224,7 @@ jobs:
|
||||||
if: ${{ runner.os == 'Macos' }}
|
if: ${{ runner.os == 'Macos' }}
|
||||||
run: security unlock -p $TEMP_KEYCHAIN_PASSWORD signing_temp.keychain
|
run: security unlock -p $TEMP_KEYCHAIN_PASSWORD signing_temp.keychain
|
||||||
env:
|
env:
|
||||||
TEMP_KEYCHAIN_PASSWORD: ${{ steps.macos-keychain.outputs.keychain-password }}
|
TEMP_KEYCHAIN_PASSWORD: ${{ steps.macos-keychain-developer-cert.outputs.keychain-password }}
|
||||||
|
|
||||||
# FIXME: This is a workaround to ensure that we use and pack a shared library for OpenSSL 1.1.1l. We currently compile
|
# FIXME: This is a workaround to ensure that we use and pack a shared library for OpenSSL 1.1.1l. We currently compile
|
||||||
# OpenSSL statically for CPython, but our Python Dependenies (such as PyQt6) require a shared library.
|
# OpenSSL statically for CPython, but our Python Dependenies (such as PyQt6) require a shared library.
|
||||||
|
@ -214,43 +249,112 @@ jobs:
|
||||||
- name: Create the Cura dist
|
- name: Create the Cura dist
|
||||||
run: pyinstaller ./cura_inst/UltiMaker-Cura.spec
|
run: pyinstaller ./cura_inst/UltiMaker-Cura.spec
|
||||||
|
|
||||||
|
- name: Output the name file name and extension
|
||||||
|
id: filename
|
||||||
|
shell: python
|
||||||
|
run: |
|
||||||
|
import os
|
||||||
|
enterprise = "-Enterprise" if "${{ inputs.enterprise }}" == "true" else ""
|
||||||
|
installer_filename = f"UltiMaker-Cura-{os.getenv('CURA_VERSION_FULL')}{enterprise}-${{ inputs.os_name }}"
|
||||||
|
if "${{ runner.os }}" == "Windows":
|
||||||
|
installer_ext = "msi" if "${{ inputs.msi_installer }}" == "true" else "exe"
|
||||||
|
elif "${{ runner.os }}" == "macOS":
|
||||||
|
installer_ext = "pkg" if "${{ inputs.msi_installer }}" == "true" else "dmg"
|
||||||
|
else:
|
||||||
|
installer_ext = "AppImage"
|
||||||
|
output_env = os.environ["GITHUB_OUTPUT"]
|
||||||
|
content = ""
|
||||||
|
if os.path.exists(output_env):
|
||||||
|
with open(output_env, "r") as f:
|
||||||
|
content = f.read()
|
||||||
|
with open(output_env, "w") as f:
|
||||||
|
f.write(content)
|
||||||
|
f.writelines(f"INSTALLER_FILENAME={installer_filename}\n")
|
||||||
|
f.writelines(f"INSTALLER_EXT={installer_ext}\n")
|
||||||
|
f.writelines(f"FULL_INSTALLER_FILENAME={installer_filename}.{installer_ext}\n")
|
||||||
|
|
||||||
|
- name: Summarize the used Conan dependencies
|
||||||
|
shell: python
|
||||||
|
run: |
|
||||||
|
import os
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
conan_install_info_path = Path("cura_inst/conan_install_info.json")
|
||||||
|
conan_info = {"installed": []}
|
||||||
|
if os.path.exists(conan_install_info_path):
|
||||||
|
with open(conan_install_info_path, "r") as f:
|
||||||
|
conan_info = json.load(f)
|
||||||
|
sorted_deps = sorted([dep["recipe"]["id"].replace('#', r' rev: ') for dep in conan_info["installed"]])
|
||||||
|
|
||||||
|
summary_env = os.environ["GITHUB_STEP_SUMMARY"]
|
||||||
|
content = ""
|
||||||
|
if os.path.exists(summary_env):
|
||||||
|
with open(summary_env, "r") as f:
|
||||||
|
content = f.read()
|
||||||
|
|
||||||
|
with open(summary_env, "w") as f:
|
||||||
|
f.write(content)
|
||||||
|
f.writelines("# ${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }} uses:\n")
|
||||||
|
for dep in sorted_deps:
|
||||||
|
f.writelines(f"`{dep}`\n")
|
||||||
|
|
||||||
- name: Archive the artifacts (bash)
|
- name: Archive the artifacts (bash)
|
||||||
if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
|
if: ${{ !inputs.installer && runner.os != 'Windows' }}
|
||||||
run: tar -zcf "./UltiMaker-Cura-$CURA_VERSION_FULL-${{ inputs.os_name }}.tar.gz" "./UltiMaker-Cura/"
|
run: tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz" "./UltiMaker-Cura/"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Archive the artifacts (Powershell)
|
- name: Archive the artifacts (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
|
if: ${{ !inputs.installer && runner.os == 'Windows' }}
|
||||||
run: Compress-Archive -Path ".\UltiMaker-Cura" -DestinationPath ".\UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.zip"
|
run: Compress-Archive -Path ".\UltiMaker-Cura" -DestinationPath ".\${{ steps.filename.outputs.INSTALLER_FILENAME }}.zip"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Windows exe installer (Powershell)
|
- name: Create the Windows exe installer (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
|
if: ${{ inputs.installer && runner.os == 'Windows' && !inputs.msi_installer }}
|
||||||
run: |
|
run: |
|
||||||
python ..\cura_inst\packaging\NSIS\create_windows_installer.py ../cura_inst . "UltiMaker-Cura-$Env:CURA_VERSION_FULL-${{ inputs.os_name }}.exe"
|
python ..\cura_inst\packaging\NSIS\create_windows_installer.py ../cura_inst . "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}"
|
||||||
|
working-directory: dist
|
||||||
|
|
||||||
|
- name: Create the Windows msi installer (Powershell)
|
||||||
|
if: ${{ inputs.installer && runner.os == 'Windows' && inputs.msi_installer }}
|
||||||
|
run: |
|
||||||
|
python ..\cura_inst\packaging\msi\create_windows_msi.py ..\cura_inst .\UltiMaker-Cura "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}" "$Env:CURA_APP_NAME"
|
||||||
|
working-directory: dist
|
||||||
|
|
||||||
|
- name: Sign the Windows exe installer (Powershell)
|
||||||
|
if: ${{ inputs.installer && runner.os == 'Windows' && !inputs.msi_installer }}
|
||||||
|
env:
|
||||||
|
PFX_PATH: ${{ steps.create-pfx.outputs.PFX_PATH }}
|
||||||
|
run: |
|
||||||
|
& "C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" sign /f $Env:PFX_PATH /p "$Env:WIN_CERT_INSTALLER_CER_PASS" /fd SHA256 /t http://timestamp.digicert.com "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}"
|
||||||
|
working-directory: dist
|
||||||
|
|
||||||
|
- name: Sign the Windows msi installer (Powershell)
|
||||||
|
if: ${{ inputs.installer && runner.os == 'Windows' && inputs.msi_installer }}
|
||||||
|
env:
|
||||||
|
PFX_PATH: ${{ steps.create-pfx.outputs.PFX_PATH }}
|
||||||
|
run: |
|
||||||
|
& "C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" sign /f $Env:PFX_PATH /p "$Env:WIN_CERT_INSTALLER_CER_PASS" /fd SHA256 /t http://timestamp.digicert.com "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Linux AppImage (Bash)
|
- name: Create the Linux AppImage (Bash)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
|
if: ${{ inputs.installer && runner.os == 'Linux' }}
|
||||||
run: python ../cura_inst/packaging/AppImage/create_appimage.py ./UltiMaker-Cura $CURA_VERSION_FULL "UltiMaker-Cura-$CURA_VERSION_FULL-${{ inputs.os_name }}.AppImage"
|
run: python ../cura_inst/packaging/AppImage/create_appimage.py ./UltiMaker-Cura $CURA_VERSION_FULL "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the MacOS dmg (Bash)
|
- name: Create the MacOS dmg and/or pkg (Bash)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
|
||||||
run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "UltiMaker-Cura-$CURA_VERSION_FULL-${{ inputs.os_name }}.dmg"
|
run: python ../cura_inst/packaging/MacOS/build_macos.py ../cura_inst . $CURA_CONAN_VERSION "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}" "$CURA_APP_NAME"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Upload the artifacts
|
- name: Upload the artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: UltiMaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ inputs.os_name }}
|
name: ${{ steps.filename.outputs.INSTALLER_FILENAME }}-${{ steps.filename.outputs.INSTALLER_EXT }}
|
||||||
path: |
|
path: |
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
dist/*.zip
|
dist/*.zip
|
||||||
dist/*.exe
|
dist/${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}
|
||||||
dist/*.msi
|
|
||||||
dist/*.dmg
|
|
||||||
dist/*.AppImage
|
|
||||||
dist/*.asc
|
dist/*.asc
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
|
|
15
.github/workflows/printer-linter-format.yml
vendored
15
.github/workflows/printer-linter-format.yml
vendored
|
@ -18,19 +18,20 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: 'pip'
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
- uses: technote-space/get-diff-action@v6
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
resources/+(definitions|extruders)/*.def.json
|
resources/+(definitions|extruders)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
|
- name: Setup Python and pip
|
||||||
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11.x
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
15
.github/workflows/printer-linter-pr-diagnose.yml
vendored
15
.github/workflows/printer-linter-pr-diagnose.yml
vendored
|
@ -16,19 +16,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: "pip"
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
- uses: technote-space/get-diff-action@v6
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
resources/+(extruders|definitions)/*.def.json
|
resources/+(extruders|definitions)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
|
- name: Setup Python and pip
|
||||||
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11.x
|
||||||
|
cache: "pip"
|
||||||
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
conan!=1.51.0,!=1.51.1,!=1.51.2,!=1.51.3,!=1.52.0
|
conan==1.56.0
|
||||||
sip
|
sip
|
||||||
|
|
71
.github/workflows/security_badge.yml
vendored
Normal file
71
.github/workflows/security_badge.yml
vendored
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
# NOTE: Best to keep all of these remarks in, they might prove useful in the future.
|
||||||
|
# This is basically just the standard one that is sugested on 'new workflow'.
|
||||||
|
|
||||||
|
name: Scorecard supply-chain security
|
||||||
|
on:
|
||||||
|
# For Branch-Protection check. Only the default branch is supported. See
|
||||||
|
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
|
||||||
|
branch_protection_rule:
|
||||||
|
# To guarantee Maintained check is occasionally updated. See
|
||||||
|
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
|
||||||
|
schedule:
|
||||||
|
- cron: '25 2 * * 5'
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
# Declare default permissions as read only.
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analysis:
|
||||||
|
name: Scorecard analysis
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
# Needed to upload the results to code-scanning dashboard.
|
||||||
|
security-events: write
|
||||||
|
# Needed to publish results and get a badge (see publish_results below).
|
||||||
|
id-token: write
|
||||||
|
# Uncomment the permissions below if installing in a private repository.
|
||||||
|
# contents: read
|
||||||
|
# actions: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout code"
|
||||||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: "Run analysis"
|
||||||
|
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
|
||||||
|
with:
|
||||||
|
results_file: results.sarif
|
||||||
|
results_format: sarif
|
||||||
|
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
|
||||||
|
# - you want to enable the Branch-Protection check on a *public* repository, or
|
||||||
|
# - you are installing Scorecard on a *private* repository
|
||||||
|
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
|
||||||
|
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
|
||||||
|
|
||||||
|
# Public repositories:
|
||||||
|
# - Publish results to OpenSSF REST API for easy access by consumers
|
||||||
|
# - Allows the repository to include the Scorecard badge.
|
||||||
|
# - See https://github.com/ossf/scorecard-action#publishing-results.
|
||||||
|
# For private repositories:
|
||||||
|
# - `publish_results` will always be set to `false`, regardless
|
||||||
|
# of the value entered here.
|
||||||
|
publish_results: true
|
||||||
|
|
||||||
|
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
||||||
|
# format to the repository Actions tab.
|
||||||
|
- name: "Upload artifact"
|
||||||
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||||
|
with:
|
||||||
|
name: SARIF file
|
||||||
|
path: results.sarif
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
|
- name: "Upload to code-scanning"
|
||||||
|
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif
|
2
.github/workflows/unit-test-post.yml
vendored
2
.github/workflows/unit-test-post.yml
vendored
|
@ -79,4 +79,4 @@ jobs:
|
||||||
files: "tests/**/*.xml"
|
files: "tests/**/*.xml"
|
||||||
|
|
||||||
- name: Conclusion
|
- name: Conclusion
|
||||||
run: echo "Conclusion is ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}"
|
run: echo "Conclusion is ${{ steps.test-results.outputs.json && fromJSON( steps.test-results.outputs.json ).conclusion }}"
|
||||||
|
|
27
.github/workflows/unit-test.yml
vendored
27
.github/workflows/unit-test.yml
vendored
|
@ -69,7 +69,7 @@ jobs:
|
||||||
project_name: cura
|
project_name: cura
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
needs: [ conan-recipe-version ]
|
needs: [ conan-recipe-version ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -81,15 +81,13 @@ jobs:
|
||||||
- name: Setup Python and pip
|
- name: Setup Python and pip
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10.x'
|
python-version: '3.11.x'
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
||||||
|
|
||||||
- name: Install Python requirements and Create default Conan profile
|
- name: Install Python requirements and Create default Conan profile
|
||||||
run: |
|
run: pip install -r requirements-conan-package.txt
|
||||||
pip install -r requirements-conan-package.txt
|
|
||||||
conan profile new default --detect
|
|
||||||
working-directory: .github/workflows/
|
working-directory: .github/workflows/
|
||||||
|
|
||||||
- name: Use Conan download cache (Bash)
|
- name: Use Conan download cache (Bash)
|
||||||
|
@ -105,21 +103,30 @@ jobs:
|
||||||
$HOME/.conan/conan_download_cache
|
$HOME/.conan/conan_download_cache
|
||||||
key: conan-${{ runner.os }}-${{ runner.arch }}-unit-cache
|
key: conan-${{ runner.os }}-${{ runner.arch }}-unit-cache
|
||||||
|
|
||||||
|
# NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest.
|
||||||
|
# This is maybe because grub caches the disk it uses last time, which is recreated each time.
|
||||||
- name: Install Linux system requirements
|
- name: Install Linux system requirements
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
run: |
|
||||||
|
sudo rm /var/cache/debconf/config.dat
|
||||||
|
sudo dpkg --configure -a
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade
|
sudo apt upgrade
|
||||||
sudo apt install build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev pkg-config -y
|
sudo apt install build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev pkg-config -y
|
||||||
|
|
||||||
- name: Use GCC-10 on ubuntu-20.04
|
- name: Install GCC-12 on ubuntu-22.04
|
||||||
run: |
|
run: |
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
|
sudo apt install g++-12 gcc-12 -y
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
|
||||||
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
|
||||||
|
|
||||||
- name: Get Conan configuration
|
- name: Get Conan configuration
|
||||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
|
|
||||||
|
- name: Get Conan profile
|
||||||
|
run: conan profile new default --detect --force
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: conan install . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} --build=missing --update -o cura:devtools=True -g VirtualPythonEnv -if venv
|
run: conan install . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} --build=missing --update -o cura:devtools=True -g VirtualPythonEnv -if venv
|
||||||
|
|
||||||
|
@ -154,4 +161,4 @@ jobs:
|
||||||
tests/**/*.xml
|
tests/**/*.xml
|
||||||
tests/pr-id.txt
|
tests/pr-id.txt
|
||||||
tests/pr-head-repo.txt
|
tests/pr-head-repo.txt
|
||||||
tests/pr-head-ref.txt
|
tests/pr-head-ref.txt
|
||||||
|
|
75
.github/workflows/update-translation.yml
vendored
Normal file
75
.github/workflows/update-translation.yml
vendored
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
name: update-translations
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'plugins/**'
|
||||||
|
- 'resources/**'
|
||||||
|
- 'cura/**'
|
||||||
|
- 'icons/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'packaging/**'
|
||||||
|
- '.github/workflows/conan-*.yml'
|
||||||
|
- '.github/workflows/notify.yml'
|
||||||
|
- '.github/workflows/requirements-conan-package.txt'
|
||||||
|
- 'requirements*.txt'
|
||||||
|
- 'conanfile.py'
|
||||||
|
- 'conandata.yml'
|
||||||
|
- 'GitVersion.yml'
|
||||||
|
- '*.jinja'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-translations:
|
||||||
|
name: Update translations
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Cache Conan data
|
||||||
|
id: cache-conan
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.conan
|
||||||
|
key: ${{ runner.os }}-conan
|
||||||
|
|
||||||
|
- name: Setup Python and pip
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11.x
|
||||||
|
cache: pip
|
||||||
|
cache-dependency-path: .github/workflows/requirements-conan-package.txt
|
||||||
|
|
||||||
|
- name: Install Python requirements for runner
|
||||||
|
run: pip install -r .github/workflows/requirements-conan-package.txt
|
||||||
|
|
||||||
|
# NOTE: Due to what are probably github issues, we have to remove the cache and reconfigure before the rest.
|
||||||
|
# This is maybe because grub caches the disk it uses last time, which is recreated each time.
|
||||||
|
- name: Install Linux system requirements
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
run: |
|
||||||
|
sudo rm /var/cache/debconf/config.dat
|
||||||
|
sudo dpkg --configure -a
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
|
sudo apt update
|
||||||
|
sudo apt upgrade
|
||||||
|
sudo apt install efibootmgr build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev pkg-config flex bison g++-12 gcc-12 -y
|
||||||
|
sudo apt install g++-12 gcc-12 -y
|
||||||
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
|
||||||
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
|
||||||
|
|
||||||
|
- name: Create the default Conan profile
|
||||||
|
run: conan profile new default --detect --force
|
||||||
|
|
||||||
|
- name: Get Conan configuration
|
||||||
|
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||||
|
|
||||||
|
- name: generate the files using Conan install
|
||||||
|
run: conan install . --build=missing --update -o cura:devtools=True
|
||||||
|
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
file_pattern: resources/i18n/*.po resources/i18n/*.pot
|
||||||
|
status_options: --untracked-files=no
|
||||||
|
commit_message: update translations
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,6 +31,7 @@ LC_MESSAGES
|
||||||
.directory
|
.directory
|
||||||
.idea
|
.idea
|
||||||
cura.desktop
|
cura.desktop
|
||||||
|
*.bak
|
||||||
|
|
||||||
# Eclipse+PyDev
|
# Eclipse+PyDev
|
||||||
.project
|
.project
|
||||||
|
|
|
@ -12,4 +12,6 @@ format:
|
||||||
format-definition-single-value-single-line: true # Format dicts and lists with a single item on one line "dict": { "value": 10 }
|
format-definition-single-value-single-line: true # Format dicts and lists with a single item on one line "dict": { "value": 10 }
|
||||||
format-profile-space-around-delimiters: true
|
format-profile-space-around-delimiters: true
|
||||||
format-profile-sort-keys: true
|
format-profile-sort-keys: true
|
||||||
diagnostic-mesh-file-size: 1200000
|
diagnostic-mesh-file-size: 1200000
|
||||||
|
diagnostic-definition-redundant-override-ignore:
|
||||||
|
- machine_.*
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
> # Work with us!
|
||||||
|
> If you're interested in working with us on Cura and Thingiverse, please apply to one of the open positions below.
|
||||||
|
> - [Software Engineer C++ & Python](https://www.linkedin.com/jobs/view/3516545085) for [Cura](https://github.com/Ultimaker/Cura)
|
||||||
|
> - [DevOps Engineer Community Software](https://www.linkedin.com/jobs/view/3516542580) for [Cura](https://github.com/Ultimaker/Cura) and [Thingiverse](https://www.thingiverse.com/)
|
||||||
|
> - [QA / Test Engineer Cura (3D printing)](https://www.linkedin.com/jobs/view/3516538895) for [Cura](https://github.com/Ultimaker/Cura) and [Thingiverse](https://www.thingiverse.com/)
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div align = center>
|
<div align = center>
|
||||||
|
@ -51,6 +57,9 @@
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
[](https://api.securityscorecards.dev/projects/github.com/Ultimaker/Cura)
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,7 @@ class UMBUNDLE(BUNDLE):
|
||||||
"CFBundleIconFile": os.path.basename(self.icon),
|
"CFBundleIconFile": os.path.basename(self.icon),
|
||||||
"CFBundleInfoDictionaryVersion": "6.0",
|
"CFBundleInfoDictionaryVersion": "6.0",
|
||||||
"CFBundlePackageType": "APPL",
|
"CFBundlePackageType": "APPL",
|
||||||
|
"CFBundleVersionString": self.version,
|
||||||
"CFBundleShortVersionString": self.version,
|
"CFBundleShortVersionString": self.version,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,9 +253,9 @@ class UMBUNDLE(BUNDLE):
|
||||||
|
|
||||||
app = UMBUNDLE(
|
app = UMBUNDLE(
|
||||||
coll,
|
coll,
|
||||||
name='{{ name }}.app',
|
name='{{ display_name }}.app',
|
||||||
icon={{ icon }},
|
icon={{ icon }},
|
||||||
bundle_identifier={{ osx_bundle_identifier }},
|
bundle_identifier={{ osx_bundle_identifier }} + "_" + '{{ display_name }}'.replace(" ", "_") + "_" {{ short_version }},
|
||||||
version={{ version }},
|
version={{ version }},
|
||||||
info_plist={
|
info_plist={
|
||||||
'CFBundleDisplayName': '{{ display_name }}',
|
'CFBundleDisplayName': '{{ display_name }}',
|
||||||
|
@ -263,6 +264,7 @@ app = UMBUNDLE(
|
||||||
'CFBundleExecutable': '{{ name }}',
|
'CFBundleExecutable': '{{ name }}',
|
||||||
'CFBundleInfoDictionaryVersion': '6.0',
|
'CFBundleInfoDictionaryVersion': '6.0',
|
||||||
'CFBundlePackageType': 'APPL',
|
'CFBundlePackageType': 'APPL',
|
||||||
|
'CFBundleVersionString': {{ version }},
|
||||||
'CFBundleShortVersionString': {{ short_version }},
|
'CFBundleShortVersionString': {{ short_version }},
|
||||||
'CFBundleDocumentTypes': [{
|
'CFBundleDocumentTypes': [{
|
||||||
'CFBundleTypeRole': 'Viewer',
|
'CFBundleTypeRole': 'Viewer',
|
||||||
|
|
738
conandata.yml
738
conandata.yml
|
@ -1,534 +1,210 @@
|
||||||
---
|
urls:
|
||||||
# Usage: defaults to the first entry in this conandata.yml file
|
default:
|
||||||
# If you're on a release branch create an entry for that **version** e.q.: `5.1.0` update the requirements (use pinned versions, not latest)
|
cloud_api_root: "https://api.ultimaker.com"
|
||||||
# also create a beta entry for that **version** e.q.: `5.1.0-beta`, update the requirements (use the <dep_name>/(latest)@ultimaker/stable)
|
cloud_account_api_root: "https://account.ultimaker.com"
|
||||||
#
|
marketplace_root: "https://marketplace.ultimaker.com"
|
||||||
# If you're working on a feature/bugfix branch from a release branch, create an entry for that **channel**, update the requirements (use
|
digital_factory_url: "https://digitalfactory.ultimaker.com"
|
||||||
# the <dep_name>/(latest)@ultimaker/stable)
|
cura_latest_url: "https://software.ultimaker.com/latest.json"
|
||||||
#
|
staging:
|
||||||
# If you're working on a feature/bugfix branch from a main branch, it is optional to create an entry for that **channel**, update the
|
cloud_api_root: "https://api-staging.ultimaker.com"
|
||||||
# requirements (use the <dep_name>/(latest)@ultimaker/testing)
|
cloud_account_api_root: "https://account-staging.ultimaker.com"
|
||||||
#
|
marketplace_root: "https://marketplace-staging.ultimaker.com"
|
||||||
# Subject to change in the future!
|
digital_factory_url: "https://digitalfactory-staging.ultimaker.com"
|
||||||
"5.3.0-alpha":
|
cura_latest_url: "https://software.ultimaker.com/latest.json"
|
||||||
requirements:
|
pyinstaller:
|
||||||
- "pyarcus/5.2.2"
|
|
||||||
- "curaengine/(latest)@ultimaker/testing"
|
|
||||||
- "pysavitar/5.2.2"
|
|
||||||
- "pynest2d/5.2.2"
|
|
||||||
- "uranium/(latest)@ultimaker/testing"
|
|
||||||
- "fdm_materials/(latest)@ultimaker/testing"
|
|
||||||
- "cura_binary_data/(latest)@ultimaker/testing"
|
|
||||||
- "cpython/3.10.4"
|
|
||||||
internal_requirements:
|
|
||||||
- "fdm_materials_private/(latest)@ultimaker/testing"
|
|
||||||
- "cura_private_data/(latest)@ultimaker/testing"
|
|
||||||
runinfo:
|
runinfo:
|
||||||
entrypoint: "cura_app.py"
|
entrypoint: "cura_app.py"
|
||||||
pyinstaller:
|
datas:
|
||||||
datas:
|
cura_plugins:
|
||||||
cura_plugins:
|
package: "cura"
|
||||||
package: "cura"
|
src: "plugins"
|
||||||
src: "plugins"
|
dst: "share/cura/plugins"
|
||||||
dst: "share/cura/plugins"
|
cura_resources:
|
||||||
cura_resources:
|
package: "cura"
|
||||||
package: "cura"
|
src: "resources"
|
||||||
src: "resources"
|
dst: "share/cura/resources"
|
||||||
dst: "share/cura/resources"
|
cura_private_data:
|
||||||
cura_private_data:
|
package: "cura_private_data"
|
||||||
package: "cura_private_data"
|
src: "res"
|
||||||
src: "resources"
|
dst: "share/cura"
|
||||||
dst: "share/cura/resources"
|
internal: true
|
||||||
internal: true
|
uranium_plugins:
|
||||||
cura_private_data_plugins:
|
package: "uranium"
|
||||||
package: "cura_private_data"
|
src: "plugins"
|
||||||
src: "plugins"
|
dst: "share/uranium/plugins"
|
||||||
dst: "share/cura/plugins"
|
uranium_resources:
|
||||||
internal: true
|
package: "uranium"
|
||||||
uranium_plugins:
|
src: "resources"
|
||||||
package: "uranium"
|
dst: "share/uranium/resources"
|
||||||
src: "plugins"
|
uranium_um_qt_qml_um:
|
||||||
dst: "share/uranium/plugins"
|
package: "uranium"
|
||||||
uranium_resources:
|
src: "site-packages/UM/Qt/qml/UM"
|
||||||
package: "uranium"
|
dst: "PyQt6/Qt6/qml/UM"
|
||||||
src: "resources"
|
cura_binary_data:
|
||||||
dst: "share/uranium/resources"
|
package: "cura_binary_data"
|
||||||
uranium_um_qt_qml_um:
|
src: "resources/cura/resources"
|
||||||
package: "uranium"
|
dst: "share/cura/resources"
|
||||||
src: "site-packages/UM/Qt/qml/UM"
|
uranium_binary_data:
|
||||||
dst: "PyQt6/Qt6/qml/UM"
|
package: "cura_binary_data"
|
||||||
cura_binary_data:
|
src: "resources/uranium/resources"
|
||||||
package: "cura_binary_data"
|
dst: "share/uranium/resources"
|
||||||
src: "resources/cura/resources"
|
windows_binary_data:
|
||||||
dst: "share/cura/resources"
|
package: "cura_binary_data"
|
||||||
uranium_binary_data:
|
src: "windows"
|
||||||
package: "cura_binary_data"
|
dst: "share/windows"
|
||||||
src: "resources/uranium/resources"
|
fdm_materials:
|
||||||
dst: "share/uranium/resources"
|
package: "fdm_materials"
|
||||||
windows_binary_data:
|
src: "res/resources/materials"
|
||||||
package: "cura_binary_data"
|
dst: "share/cura/resources/materials"
|
||||||
src: "windows"
|
tcl:
|
||||||
dst: "share/windows"
|
package: "tcl"
|
||||||
fdm_materials:
|
src: "lib/tcl8.6"
|
||||||
package: "fdm_materials"
|
dst: "tcl"
|
||||||
src: "materials"
|
tk:
|
||||||
dst: "share/cura/resources/materials"
|
package: "tk"
|
||||||
fdm_materials_private:
|
src: "lib/tk8.6"
|
||||||
package: "fdm_materials_private"
|
dst: "tk"
|
||||||
src: "resources/materials"
|
binaries:
|
||||||
dst: "share/cura/resources/materials"
|
curaengine:
|
||||||
internal: true
|
package: "curaengine"
|
||||||
tcl:
|
src: "bin"
|
||||||
package: "tcl"
|
dst: "."
|
||||||
src: "lib/tcl8.6"
|
binary: "CuraEngine"
|
||||||
dst: "tcl"
|
hiddenimports:
|
||||||
tk:
|
- "pySavitar"
|
||||||
package: "tk"
|
- "pyArcus"
|
||||||
src: "lib/tk8.6"
|
- "pynest2d"
|
||||||
dst: "tk"
|
- "PyQt6"
|
||||||
binaries:
|
- "PyQt6.QtNetwork"
|
||||||
curaengine:
|
- "PyQt6.sip"
|
||||||
package: "curaengine"
|
- "logging.handlers"
|
||||||
src: "bin"
|
- "zeroconf"
|
||||||
dst: "."
|
- "fcntl"
|
||||||
binary: "CuraEngine"
|
- "stl"
|
||||||
hiddenimports:
|
- "serial"
|
||||||
- "pySavitar"
|
collect_all:
|
||||||
- "pyArcus"
|
- "cura"
|
||||||
- "pynest2d"
|
- "UM"
|
||||||
- "PyQt6"
|
- "serial"
|
||||||
- "PyQt6.QtNetwork"
|
- "Charon"
|
||||||
- "PyQt6.sip"
|
- "sqlite3"
|
||||||
- "logging.handlers"
|
- "trimesh"
|
||||||
- "zeroconf"
|
- "win32ctypes"
|
||||||
- "fcntl"
|
- "PyQt6"
|
||||||
- "stl"
|
- "PyQt6.QtNetwork"
|
||||||
- "serial"
|
- "PyQt6.sip"
|
||||||
collect_all:
|
- "stl"
|
||||||
- "cura"
|
icon:
|
||||||
- "UM"
|
Windows: "./icons/Cura.ico"
|
||||||
- "serial"
|
Macos: "./icons/cura.icns"
|
||||||
- "Charon"
|
Linux: "./icons/cura-128.png"
|
||||||
- "sqlite3"
|
|
||||||
- "trimesh"
|
|
||||||
- "win32ctypes"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "stl"
|
|
||||||
icon:
|
|
||||||
Windows: "./icons/Cura.ico"
|
|
||||||
Macos: "./icons/cura.icns"
|
|
||||||
Linux: "./icons/cura-128.png"
|
|
||||||
"5.2.1":
|
|
||||||
requirements:
|
|
||||||
- "pyarcus/5.2.0"
|
|
||||||
- "curaengine/5.2.1"
|
|
||||||
- "pysavitar/5.2.0"
|
|
||||||
- "pynest2d/5.2.0"
|
|
||||||
- "uranium/5.2.0"
|
|
||||||
- "fdm_materials/5.2.0"
|
|
||||||
- "cura_binary_data/5.2.1"
|
|
||||||
- "cpython/3.10.4"
|
|
||||||
internal_requirements:
|
|
||||||
- "fdm_materials_private/(latest)@ultimaker/testing"
|
|
||||||
- "cura_private_data/(latest)@ultimaker/testing"
|
|
||||||
runinfo:
|
|
||||||
entrypoint: "cura_app.py"
|
|
||||||
pyinstaller:
|
|
||||||
datas:
|
|
||||||
cura_plugins:
|
|
||||||
package: "cura"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/cura/plugins"
|
|
||||||
cura_resources:
|
|
||||||
package: "cura"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
cura_private_data:
|
|
||||||
package: "cura_private_data"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
internal: true
|
|
||||||
uranium_plugins:
|
|
||||||
package: "uranium"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/uranium/plugins"
|
|
||||||
uranium_resources:
|
|
||||||
package: "uranium"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
uranium_um_qt_qml_um:
|
|
||||||
package: "uranium"
|
|
||||||
src: "site-packages/UM/Qt/qml/UM"
|
|
||||||
dst: "PyQt6/Qt6/qml/UM"
|
|
||||||
cura_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/cura/resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
uranium_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/uranium/resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
windows_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "windows"
|
|
||||||
dst: "share/windows"
|
|
||||||
fdm_materials:
|
|
||||||
package: "fdm_materials"
|
|
||||||
src: "materials"
|
|
||||||
dst: "share/cura/resources/materials"
|
|
||||||
fdm_materials_private:
|
|
||||||
package: "fdm_materials_private"
|
|
||||||
src: "resources/materials"
|
|
||||||
dst: "share/cura/resources/materials"
|
|
||||||
internal: true
|
|
||||||
tcl:
|
|
||||||
package: "tcl"
|
|
||||||
src: "lib/tcl8.6"
|
|
||||||
dst: "tcl"
|
|
||||||
tk:
|
|
||||||
package: "tk"
|
|
||||||
src: "lib/tk8.6"
|
|
||||||
dst: "tk"
|
|
||||||
binaries:
|
|
||||||
curaengine:
|
|
||||||
package: "curaengine"
|
|
||||||
src: "bin"
|
|
||||||
dst: "."
|
|
||||||
binary: "CuraEngine"
|
|
||||||
hiddenimports:
|
|
||||||
- "pySavitar"
|
|
||||||
- "pyArcus"
|
|
||||||
- "pynest2d"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "logging.handlers"
|
|
||||||
- "zeroconf"
|
|
||||||
- "fcntl"
|
|
||||||
- "stl"
|
|
||||||
- "serial"
|
|
||||||
collect_all:
|
|
||||||
- "cura"
|
|
||||||
- "UM"
|
|
||||||
- "serial"
|
|
||||||
- "Charon"
|
|
||||||
- "sqlite3"
|
|
||||||
- "trimesh"
|
|
||||||
- "win32ctypes"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "stl"
|
|
||||||
icon:
|
|
||||||
Windows: "./icons/Cura.ico"
|
|
||||||
Macos: "./icons/cura.icns"
|
|
||||||
Linux: "./icons/cura-128.png"
|
|
||||||
"5.2.0":
|
|
||||||
requirements:
|
|
||||||
- "pyarcus/5.2.0"
|
|
||||||
- "curaengine/5.2.0"
|
|
||||||
- "pysavitar/5.2.0"
|
|
||||||
- "pynest2d/5.2.0"
|
|
||||||
- "uranium/5.2.0"
|
|
||||||
- "fdm_materials/5.2.0"
|
|
||||||
- "cura_binary_data/5.2.0"
|
|
||||||
- "cpython/3.10.4"
|
|
||||||
internal_requirements:
|
|
||||||
- "fdm_materials_private/(latest)@ultimaker/testing"
|
|
||||||
- "cura_private_data/(latest)@ultimaker/testing"
|
|
||||||
runinfo:
|
|
||||||
entrypoint: "cura_app.py"
|
|
||||||
pyinstaller:
|
|
||||||
datas:
|
|
||||||
cura_plugins:
|
|
||||||
package: "cura"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/cura/plugins"
|
|
||||||
cura_resources:
|
|
||||||
package: "cura"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
cura_private_data:
|
|
||||||
package: "cura_private_data"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
internal: true
|
|
||||||
uranium_plugins:
|
|
||||||
package: "uranium"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/uranium/plugins"
|
|
||||||
uranium_resources:
|
|
||||||
package: "uranium"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
uranium_um_qt_qml_um:
|
|
||||||
package: "uranium"
|
|
||||||
src: "site-packages/UM/Qt/qml/UM"
|
|
||||||
dst: "PyQt6/Qt6/qml/UM"
|
|
||||||
cura_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/cura/resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
uranium_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/uranium/resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
windows_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "windows"
|
|
||||||
dst: "share/windows"
|
|
||||||
fdm_materials:
|
|
||||||
package: "fdm_materials"
|
|
||||||
src: "materials"
|
|
||||||
dst: "share/cura/resources/materials"
|
|
||||||
fdm_materials_private:
|
|
||||||
package: "fdm_materials_private"
|
|
||||||
src: "resources/materials"
|
|
||||||
dst: "share/cura/resources/materials"
|
|
||||||
internal: true
|
|
||||||
tcl:
|
|
||||||
package: "tcl"
|
|
||||||
src: "lib/tcl8.6"
|
|
||||||
dst: "tcl"
|
|
||||||
tk:
|
|
||||||
package: "tk"
|
|
||||||
src: "lib/tk8.6"
|
|
||||||
dst: "tk"
|
|
||||||
binaries:
|
|
||||||
curaengine:
|
|
||||||
package: "curaengine"
|
|
||||||
src: "bin"
|
|
||||||
dst: "."
|
|
||||||
binary: "CuraEngine"
|
|
||||||
hiddenimports:
|
|
||||||
- "pySavitar"
|
|
||||||
- "pyArcus"
|
|
||||||
- "pynest2d"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "logging.handlers"
|
|
||||||
- "zeroconf"
|
|
||||||
- "fcntl"
|
|
||||||
- "stl"
|
|
||||||
- "serial"
|
|
||||||
collect_all:
|
|
||||||
- "cura"
|
|
||||||
- "UM"
|
|
||||||
- "serial"
|
|
||||||
- "Charon"
|
|
||||||
- "sqlite3"
|
|
||||||
- "trimesh"
|
|
||||||
- "win32ctypes"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "stl"
|
|
||||||
icon:
|
|
||||||
Windows: "./icons/Cura.ico"
|
|
||||||
Macos: "./icons/cura.icns"
|
|
||||||
Linux: "./icons/cura-128.png"
|
|
||||||
"5.1.0":
|
|
||||||
requirements:
|
|
||||||
- "arcus/5.1.0"
|
|
||||||
- "curaengine/5.1.0"
|
|
||||||
- "savitar/5.1.0"
|
|
||||||
- "pynest2d/5.1.0"
|
|
||||||
- "uranium/5.1.0"
|
|
||||||
- "fdm_materials/5.1.0"
|
|
||||||
- "cura_binary_data/5.1.0"
|
|
||||||
- "cpython/3.10.4"
|
|
||||||
runinfo:
|
|
||||||
entrypoint: "cura_app.py"
|
|
||||||
pyinstaller:
|
|
||||||
datas:
|
|
||||||
cura_plugins:
|
|
||||||
package: "cura"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/cura/plugins"
|
|
||||||
cura_resources:
|
|
||||||
package: "cura"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
uranium_plugins:
|
|
||||||
package: "uranium"
|
|
||||||
src: "plugins"
|
|
||||||
dst: "share/uranium/plugins"
|
|
||||||
uranium_resources:
|
|
||||||
package: "uranium"
|
|
||||||
src: "resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
uranium_um_qt_qml_um:
|
|
||||||
package: "uranium"
|
|
||||||
src: "site-packages/UM/Qt/qml/UM"
|
|
||||||
dst: "PyQt6/Qt6/qml/UM"
|
|
||||||
cura_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/cura/resources"
|
|
||||||
dst: "share/cura/resources"
|
|
||||||
uranium_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "resources/uranium/resources"
|
|
||||||
dst: "share/uranium/resources"
|
|
||||||
windows_binary_data:
|
|
||||||
package: "cura_binary_data"
|
|
||||||
src: "windows"
|
|
||||||
dst: "share/windows"
|
|
||||||
fdm_materials:
|
|
||||||
package: "fdm_materials"
|
|
||||||
src: "materials"
|
|
||||||
dst: "share/cura/resources/materials"
|
|
||||||
tcl:
|
|
||||||
package: "tcl"
|
|
||||||
src: "lib/tcl8.6"
|
|
||||||
dst: "tcl"
|
|
||||||
tk:
|
|
||||||
package: "tk"
|
|
||||||
src: "lib/tk8.6"
|
|
||||||
dst: "tk"
|
|
||||||
binaries:
|
|
||||||
curaengine:
|
|
||||||
package: "curaengine"
|
|
||||||
src: "bin"
|
|
||||||
dst: "."
|
|
||||||
binary: "CuraEngine"
|
|
||||||
hiddenimports:
|
|
||||||
- "pySavitar"
|
|
||||||
- "pyArcus"
|
|
||||||
- "pynest2d"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "logging.handlers"
|
|
||||||
- "zeroconf"
|
|
||||||
- "fcntl"
|
|
||||||
- "stl"
|
|
||||||
- "serial"
|
|
||||||
collect_all:
|
|
||||||
- "cura"
|
|
||||||
- "UM"
|
|
||||||
- "serial"
|
|
||||||
- "Charon"
|
|
||||||
- "sqlite3"
|
|
||||||
- "trimesh"
|
|
||||||
- "win32ctypes"
|
|
||||||
- "PyQt6"
|
|
||||||
- "PyQt6.QtNetwork"
|
|
||||||
- "PyQt6.sip"
|
|
||||||
- "stl"
|
|
||||||
icon:
|
|
||||||
Windows: "./icons/Cura.ico"
|
|
||||||
Macos: "./icons/cura.icns"
|
|
||||||
Linux: "./icons/cura-128.png"
|
|
||||||
pycharm_targets:
|
pycharm_targets:
|
||||||
- jinja_path: .run_templates/pycharm_cura_run.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_run.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: cura
|
name: cura
|
||||||
script_name: cura_app.py
|
script_name: cura_app.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_run.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_run.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: cura_external_engine
|
name: cura_external_engine
|
||||||
parameters: --external-backend
|
parameters: --external-backend
|
||||||
script_name: cura_app.py
|
script_name: cura_app.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in tests
|
name: pytest in tests
|
||||||
script_name: tests/
|
script_name: tests/
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestBuildVolume.py
|
name: pytest in TestBuildVolume.py
|
||||||
script_name: tests/TestBuildVolume.py
|
script_name: tests/TestBuildVolume.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestConvexHullDecorator.py
|
name: pytest in TestConvexHullDecorator.py
|
||||||
script_name: tests/TestConvexHullDecorator.py
|
script_name: tests/TestConvexHullDecorator.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestCuraSceneNode.py
|
name: pytest in TestCuraSceneNode.py
|
||||||
script_name: tests/TestCuraSceneNode.py
|
script_name: tests/TestCuraSceneNode.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestCuraSceneNode.py
|
name: pytest in TestCuraSceneNode.py
|
||||||
script_name: tests/TestExtruderManager.py
|
script_name: tests/TestExtruderManager.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestGCodeListDecorator.py
|
name: pytest in TestGCodeListDecorator.py
|
||||||
script_name: tests/TestGCodeListDecorator.py
|
script_name: tests/TestGCodeListDecorator.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestIntentManager.py
|
name: pytest in TestIntentManager.py
|
||||||
script_name: tests/TestIntentManager.py
|
script_name: tests/TestIntentManager.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestLayer.py
|
name: pytest in TestLayer.py
|
||||||
script_name: tests/TestLayer.py
|
script_name: tests/TestLayer.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestMachineAction.py
|
name: pytest in TestMachineAction.py
|
||||||
script_name: tests/TestMachineAction.py
|
script_name: tests/TestMachineAction.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestMachineManager.py
|
name: pytest in TestMachineManager.py
|
||||||
script_name: tests/TestMachineManager.py
|
script_name: tests/TestMachineManager.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestOAuth2.py
|
name: pytest in TestOAuth2.py
|
||||||
script_name: tests/TestOAuth2.py
|
script_name: tests/TestOAuth2.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestObjectsModel.py
|
name: pytest in TestObjectsModel.py
|
||||||
script_name: tests/TestObjectsModel.py
|
script_name: tests/TestObjectsModel.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestPrintInformation.py
|
name: pytest in TestPrintInformation.py
|
||||||
script_name: tests/TestPrintInformation.py
|
script_name: tests/TestPrintInformation.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestProfileRequirements.py
|
name: pytest in TestProfileRequirements.py
|
||||||
script_name: tests/TestProfileRequirements.py
|
script_name: tests/TestProfileRequirements.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestThemes.py
|
name: pytest in TestThemes.py
|
||||||
script_name: tests/TestThemes.py
|
script_name: tests/TestThemes.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestContainerManager.py
|
name: pytest in TestContainerManager.py
|
||||||
script_name: tests/Settings/TestContainerManager.py
|
script_name: tests/Settings/TestContainerManager.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestCuraContainerRegistry.py
|
name: pytest in TestCuraContainerRegistry.py
|
||||||
script_name: tests/Settings/TestCuraContainerRegistry.py
|
script_name: tests/Settings/TestCuraContainerRegistry.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestCuraStackBuilder.py
|
name: pytest in TestCuraStackBuilder.py
|
||||||
script_name: tests/Settings/TestCuraStackBuilder.py
|
script_name: tests/Settings/TestCuraStackBuilder.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestDefinitionContainer.py
|
name: pytest in TestDefinitionContainer.py
|
||||||
script_name: tests/Settings/TestDefinitionContainer.py
|
script_name: tests/Settings/TestDefinitionContainer.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestExtruderStack.py
|
name: pytest in TestExtruderStack.py
|
||||||
script_name: tests/Settings/TestExtruderStack.py
|
script_name: tests/Settings/TestExtruderStack.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestGlobalStack.py
|
name: pytest in TestGlobalStack.py
|
||||||
script_name: tests/Settings/TestGlobalStack.py
|
script_name: tests/Settings/TestGlobalStack.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestProfiles.py
|
name: pytest in TestProfiles.py
|
||||||
script_name: tests/Settings/TestProfiles.py
|
script_name: tests/Settings/TestProfiles.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestSettingInheritanceManager.py
|
name: pytest in TestSettingInheritanceManager.py
|
||||||
script_name: tests/Settings/TestSettingInheritanceManager.py
|
script_name: tests/Settings/TestSettingInheritanceManager.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestSettingOverrideDecorator.py
|
name: pytest in TestSettingOverrideDecorator.py
|
||||||
script_name: tests/Settings/TestSettingOverrideDecorator.py
|
script_name: tests/Settings/TestSettingOverrideDecorator.py
|
||||||
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
- jinja_path: .run_templates/pycharm_cura_test.run.xml.jinja
|
||||||
module_name: Cura
|
module_name: Cura
|
||||||
name: pytest in TestSettingVisibilityPresets.py
|
name: pytest in TestSettingVisibilityPresets.py
|
||||||
script_name: tests/Settings/TestSettingVisibilityPresets.py
|
script_name: tests/Settings/TestSettingVisibilityPresets.py
|
||||||
|
|
291
conanfile.py
291
conanfile.py
|
@ -6,11 +6,11 @@ from jinja2 import Template
|
||||||
from conan import ConanFile
|
from conan import ConanFile
|
||||||
from conan.tools.files import copy, rmdir, save, mkdir
|
from conan.tools.files import copy, rmdir, save, mkdir
|
||||||
from conan.tools.microsoft import unix_path
|
from conan.tools.microsoft import unix_path
|
||||||
from conan.tools.env import VirtualRunEnv, Environment
|
from conan.tools.env import VirtualRunEnv, Environment, VirtualBuildEnv
|
||||||
from conan.tools.scm import Version
|
from conan.tools.scm import Version
|
||||||
from conan.errors import ConanInvalidConfiguration, ConanException
|
from conan.errors import ConanInvalidConfiguration, ConanException
|
||||||
|
|
||||||
required_conan_version = ">=1.52.0"
|
required_conan_version = "<=1.56.0"
|
||||||
|
|
||||||
|
|
||||||
class CuraConan(ConanFile):
|
class CuraConan(ConanFile):
|
||||||
|
@ -19,15 +19,13 @@ class CuraConan(ConanFile):
|
||||||
author = "UltiMaker"
|
author = "UltiMaker"
|
||||||
url = "https://github.com/Ultimaker/cura"
|
url = "https://github.com/Ultimaker/cura"
|
||||||
description = "3D printer / slicing GUI built on top of the Uranium framework"
|
description = "3D printer / slicing GUI built on top of the Uranium framework"
|
||||||
topics = ("conan", "python", "pyqt5", "qt", "qml", "3d-printing", "slicer")
|
topics = ("conan", "python", "pyqt6", "qt", "qml", "3d-printing", "slicer")
|
||||||
build_policy = "missing"
|
build_policy = "missing"
|
||||||
exports = "LICENSE*", "UltiMaker-Cura.spec.jinja", "CuraVersion.py.jinja"
|
exports = "LICENSE*", "UltiMaker-Cura.spec.jinja", "CuraVersion.py.jinja"
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
no_copy_source = True # We won't build so no need to copy sources to the build folder
|
|
||||||
|
|
||||||
# FIXME: Remove specific branch once merged to main
|
# FIXME: Remove specific branch once merged to main
|
||||||
# Extending the conanfile with the UMBaseConanfile https://github.com/Ultimaker/conan-ultimaker-index/tree/CURA-9177_Fix_CI_CD/recipes/umbase
|
python_requires = "umbase/[>=0.1.7]@ultimaker/stable", "translationextractor/[>=2.1.1]@ultimaker/stable"
|
||||||
python_requires = "umbase/[>=0.1.7]@ultimaker/stable"
|
|
||||||
python_requires_extend = "umbase.UMBaseConanfile"
|
python_requires_extend = "umbase.UMBaseConanfile"
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
@ -48,12 +46,10 @@ class CuraConan(ConanFile):
|
||||||
"cura_debug_mode": False, # Not yet implemented
|
"cura_debug_mode": False, # Not yet implemented
|
||||||
"internal": False,
|
"internal": False,
|
||||||
}
|
}
|
||||||
scm = {
|
|
||||||
"type": "git",
|
def set_version(self):
|
||||||
"subfolder": ".",
|
if not self.version:
|
||||||
"url": "auto",
|
self.version = "5.4.0-alpha"
|
||||||
"revision": "auto"
|
|
||||||
}
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _pycharm_targets(self):
|
def _pycharm_targets(self):
|
||||||
|
@ -77,33 +73,21 @@ class CuraConan(ConanFile):
|
||||||
self._cura_env.define("QT_XKB_CONFIG_ROOT", "/usr/share/X11/xkb")
|
self._cura_env.define("QT_XKB_CONFIG_ROOT", "/usr/share/X11/xkb")
|
||||||
return self._cura_env
|
return self._cura_env
|
||||||
|
|
||||||
@property
|
|
||||||
def _staging(self):
|
|
||||||
return self.options.staging in ["True", 'true']
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _enterprise(self):
|
def _enterprise(self):
|
||||||
return self.options.enterprise in ["True", 'true']
|
return self.options.enterprise in ["True", 'true']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _cloud_api_root(self):
|
def _app_name(self):
|
||||||
return "https://api-staging.ultimaker.com" if self._staging else "https://api.ultimaker.com"
|
if self._enterprise:
|
||||||
|
return str(self.options.display_name) + " Enterprise"
|
||||||
|
return str(self.options.display_name)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _cloud_account_api_root(self):
|
def _urls(self):
|
||||||
return "https://account-staging.ultimaker.com" if self._staging else "https://account.ultimaker.com"
|
if self.options.staging in ["True", 'true']:
|
||||||
|
return "staging"
|
||||||
@property
|
return "default"
|
||||||
def _marketplace_root(self):
|
|
||||||
return "https://marketplace-staging.ultimaker.com" if self._staging else "https://marketplace.ultimaker.com"
|
|
||||||
|
|
||||||
@property
|
|
||||||
def _digital_factory_url(self):
|
|
||||||
return "https://digitalfactory-staging.ultimaker.com" if self._staging else "https://digitalfactory.ultimaker.com"
|
|
||||||
|
|
||||||
@property
|
|
||||||
def _cura_latest_url(self):
|
|
||||||
return "https://software.ultimaker.com/latest.json"
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def requirements_txts(self):
|
def requirements_txts(self):
|
||||||
|
@ -146,8 +130,16 @@ class CuraConan(ConanFile):
|
||||||
py_interp = Path(*[f'"{p}"' if " " in p else p for p in py_interp.parts])
|
py_interp = Path(*[f'"{p}"' if " " in p else p for p in py_interp.parts])
|
||||||
return py_interp
|
return py_interp
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _pyinstaller_spec_arch(self):
|
||||||
|
if self.settings.os == "Macos":
|
||||||
|
if self.settings.arch == "armv8":
|
||||||
|
return "'arm64'"
|
||||||
|
return "'x86_64'"
|
||||||
|
return "None"
|
||||||
|
|
||||||
def _generate_cura_version(self, location):
|
def _generate_cura_version(self, location):
|
||||||
with open(Path(__file__).parent.joinpath("CuraVersion.py.jinja"), "r") as f:
|
with open(os.path.join(self.recipe_folder, "CuraVersion.py.jinja"), "r") as f:
|
||||||
cura_version_py = Template(f.read())
|
cura_version_py = Template(f.read())
|
||||||
|
|
||||||
# If you want a specific Cura version to show up on the splash screen add the user configuration `user.cura:version=VERSION`
|
# If you want a specific Cura version to show up on the splash screen add the user configuration `user.cura:version=VERSION`
|
||||||
|
@ -158,22 +150,22 @@ class CuraConan(ConanFile):
|
||||||
internal_tag = f"+internal" if self.options.internal else ""
|
internal_tag = f"+internal" if self.options.internal else ""
|
||||||
cura_version = f"{cura_version.major}.{cura_version.minor}.{cura_version.patch}{pre_tag}{build_tag}{internal_tag}"
|
cura_version = f"{cura_version.major}.{cura_version.minor}.{cura_version.patch}{pre_tag}{build_tag}{internal_tag}"
|
||||||
|
|
||||||
with open(Path(location, "CuraVersion.py"), "w") as f:
|
with open(os.path.join(location, "CuraVersion.py"), "w") as f:
|
||||||
f.write(cura_version_py.render(
|
f.write(cura_version_py.render(
|
||||||
cura_app_name = self.name,
|
cura_app_name = self.name,
|
||||||
cura_app_display_name = self.options.display_name,
|
cura_app_display_name = self._app_name,
|
||||||
cura_version = cura_version,
|
cura_version = cura_version,
|
||||||
cura_build_type = "Enterprise" if self._enterprise else "",
|
cura_build_type = "Enterprise" if self._enterprise else "",
|
||||||
cura_debug_mode = self.options.cura_debug_mode,
|
cura_debug_mode = self.options.cura_debug_mode,
|
||||||
cura_cloud_api_root = self._cloud_api_root,
|
cura_cloud_api_root = self.conan_data["urls"][self._urls]["cloud_api_root"],
|
||||||
cura_cloud_api_version = self.options.cloud_api_version,
|
cura_cloud_api_version = self.options.cloud_api_version,
|
||||||
cura_cloud_account_api_root = self._cloud_account_api_root,
|
cura_cloud_account_api_root = self.conan_data["urls"][self._urls]["cloud_account_api_root"],
|
||||||
cura_marketplace_root = self._marketplace_root,
|
cura_marketplace_root = self.conan_data["urls"][self._urls]["marketplace_root"],
|
||||||
cura_digital_factory_url = self._digital_factory_url,
|
cura_digital_factory_url = self.conan_data["urls"][self._urls]["digital_factory_url"],
|
||||||
cura_latest_url = self._cura_latest_url))
|
cura_latest_url = self.conan_data["urls"][self._urls]["cura_latest_url"]))
|
||||||
|
|
||||||
def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file):
|
def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file):
|
||||||
pyinstaller_metadata = self._um_data()["pyinstaller"]
|
pyinstaller_metadata = self.conan_data["pyinstaller"]
|
||||||
datas = [(str(self._base_dir.joinpath("conan_install_info.json")), ".")]
|
datas = [(str(self._base_dir.joinpath("conan_install_info.json")), ".")]
|
||||||
for data in pyinstaller_metadata["datas"].values():
|
for data in pyinstaller_metadata["datas"].values():
|
||||||
if not self.options.internal and data.get("internal", False):
|
if not self.options.internal and data.get("internal", False):
|
||||||
|
@ -182,33 +174,33 @@ class CuraConan(ConanFile):
|
||||||
if "package" in data: # get the paths from conan package
|
if "package" in data: # get the paths from conan package
|
||||||
if data["package"] == self.name:
|
if data["package"] == self.name:
|
||||||
if self.in_local_cache:
|
if self.in_local_cache:
|
||||||
src_path = Path(self.package_folder, data["src"])
|
src_path = os.path.join(self.package_folder, data["src"])
|
||||||
else:
|
else:
|
||||||
src_path = Path(self.source_folder, data["src"])
|
src_path = os.path.join(self.source_folder, data["src"])
|
||||||
else:
|
else:
|
||||||
src_path = Path(self.deps_cpp_info[data["package"]].rootpath, data["src"])
|
src_path = os.path.join(self.deps_cpp_info[data["package"]].rootpath, data["src"])
|
||||||
elif "root" in data: # get the paths relative from the sourcefolder
|
elif "root" in data: # get the paths relative from the sourcefolder
|
||||||
src_path = Path(self.source_folder, data["root"], data["src"])
|
src_path = os.path.join(self.source_folder, data["root"], data["src"])
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
if src_path.exists():
|
if Path(src_path).exists():
|
||||||
datas.append((str(src_path), data["dst"]))
|
datas.append((str(src_path), data["dst"]))
|
||||||
|
|
||||||
binaries = []
|
binaries = []
|
||||||
for binary in pyinstaller_metadata["binaries"].values():
|
for binary in pyinstaller_metadata["binaries"].values():
|
||||||
if "package" in binary: # get the paths from conan package
|
if "package" in binary: # get the paths from conan package
|
||||||
src_path = Path(self.deps_cpp_info[binary["package"]].rootpath, binary["src"])
|
src_path = os.path.join(self.deps_cpp_info[binary["package"]].rootpath, binary["src"])
|
||||||
elif "root" in binary: # get the paths relative from the sourcefolder
|
elif "root" in binary: # get the paths relative from the sourcefolder
|
||||||
src_path = Path(self.source_folder, binary["root"], binary["src"])
|
src_path = os.path.join(self.source_folder, binary["root"], binary["src"])
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
if not src_path.exists():
|
if not Path(src_path).exists():
|
||||||
self.output.warning(f"Source path for binary {binary['binary']} does not exist")
|
self.output.warning(f"Source path for binary {binary['binary']} does not exist")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for bin in src_path.glob(binary["binary"] + "*[.exe|.dll|.so|.dylib|.so.]*"):
|
for bin in Path(src_path).glob(binary["binary"] + "*[.exe|.dll|.so|.dylib|.so.]*"):
|
||||||
binaries.append((str(bin), binary["dst"]))
|
binaries.append((str(bin), binary["dst"]))
|
||||||
for bin in src_path.glob(binary["binary"]):
|
for bin in Path(src_path).glob(binary["binary"]):
|
||||||
binaries.append((str(bin), binary["dst"]))
|
binaries.append((str(bin), binary["dst"]))
|
||||||
|
|
||||||
# Make sure all Conan dependencies which are shared are added to the binary list for pyinstaller
|
# Make sure all Conan dependencies which are shared are added to the binary list for pyinstaller
|
||||||
|
@ -226,16 +218,16 @@ class CuraConan(ConanFile):
|
||||||
# Collect all dll's from PyQt6 and place them in the root
|
# Collect all dll's from PyQt6 and place them in the root
|
||||||
binaries.extend([(f"{p}", ".") for p in Path(self._site_packages, "PyQt6", "Qt6").glob("**/*.dll")])
|
binaries.extend([(f"{p}", ".") for p in Path(self._site_packages, "PyQt6", "Qt6").glob("**/*.dll")])
|
||||||
|
|
||||||
with open(Path(__file__).parent.joinpath("UltiMaker-Cura.spec.jinja"), "r") as f:
|
with open(os.path.join(self.recipe_folder, "UltiMaker-Cura.spec.jinja"), "r") as f:
|
||||||
pyinstaller = Template(f.read())
|
pyinstaller = Template(f.read())
|
||||||
|
|
||||||
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
||||||
cura_version = Version(version)
|
cura_version = Version(version)
|
||||||
|
|
||||||
with open(Path(location, "UltiMaker-Cura.spec"), "w") as f:
|
with open(os.path.join(location, "UltiMaker-Cura.spec"), "w") as f:
|
||||||
f.write(pyinstaller.render(
|
f.write(pyinstaller.render(
|
||||||
name = str(self.options.display_name).replace(" ", "-"),
|
name = str(self.options.display_name).replace(" ", "-"),
|
||||||
display_name = self.options.display_name,
|
display_name = self._app_name,
|
||||||
entrypoint = entrypoint_location,
|
entrypoint = entrypoint_location,
|
||||||
datas = datas,
|
datas = datas,
|
||||||
binaries = binaries,
|
binaries = binaries,
|
||||||
|
@ -247,15 +239,23 @@ class CuraConan(ConanFile):
|
||||||
osx_bundle_identifier = "'nl.ultimaker.cura'" if self.settings.os == "Macos" else "None",
|
osx_bundle_identifier = "'nl.ultimaker.cura'" if self.settings.os == "Macos" else "None",
|
||||||
upx = str(self.settings.os == "Windows"),
|
upx = str(self.settings.os == "Windows"),
|
||||||
strip = False, # This should be possible on Linux and MacOS but, it can also cause issues on some distributions. Safest is to disable it for now
|
strip = False, # This should be possible on Linux and MacOS but, it can also cause issues on some distributions. Safest is to disable it for now
|
||||||
target_arch = "'x86_64'" if self.settings.os == "Macos" else "None", # FIXME: Make this dependent on the settings.arch_target
|
target_arch = self._pyinstaller_spec_arch,
|
||||||
macos = self.settings.os == "Macos",
|
macos = self.settings.os == "Macos",
|
||||||
version = f"'{version}'",
|
version = f"'{version}'",
|
||||||
short_version = f"'{cura_version.major}.{cura_version.minor}.{cura_version.patch}'",
|
short_version = f"'{cura_version.major}.{cura_version.minor}.{cura_version.patch}'",
|
||||||
))
|
))
|
||||||
|
|
||||||
def set_version(self):
|
def export_sources(self):
|
||||||
if self.version is None:
|
copy(self, "*", os.path.join(self.recipe_folder, "plugins"), os.path.join(self.export_sources_folder, "plugins"))
|
||||||
self.version = self._umdefault_version()
|
copy(self, "*", os.path.join(self.recipe_folder, "resources"), os.path.join(self.export_sources_folder, "resources"), excludes = "*.mo")
|
||||||
|
copy(self, "*", os.path.join(self.recipe_folder, "tests"), os.path.join(self.export_sources_folder, "tests"))
|
||||||
|
copy(self, "*", os.path.join(self.recipe_folder, "cura"), os.path.join(self.export_sources_folder, "cura"), excludes="CuraVersion.py")
|
||||||
|
copy(self, "*", os.path.join(self.recipe_folder, "packaging"), os.path.join(self.export_sources_folder, "packaging"))
|
||||||
|
copy(self, "*", os.path.join(self.recipe_folder, ".run_templates"), os.path.join(self.export_sources_folder, ".run_templates"))
|
||||||
|
copy(self, "requirements.txt", self.recipe_folder, self.export_sources_folder)
|
||||||
|
copy(self, "requirements-dev.txt", self.recipe_folder, self.export_sources_folder)
|
||||||
|
copy(self, "requirements-ultimaker.txt", self.recipe_folder, self.export_sources_folder)
|
||||||
|
copy(self, "cura_app.py", self.recipe_folder, self.export_sources_folder)
|
||||||
|
|
||||||
def configure(self):
|
def configure(self):
|
||||||
self.options["pyarcus"].shared = True
|
self.options["pyarcus"].shared = True
|
||||||
|
@ -269,63 +269,72 @@ class CuraConan(ConanFile):
|
||||||
raise ConanInvalidConfiguration("Only versions 5+ are support")
|
raise ConanInvalidConfiguration("Only versions 5+ are support")
|
||||||
|
|
||||||
def requirements(self):
|
def requirements(self):
|
||||||
for req in self._um_data()["requirements"]:
|
self.requires("pyarcus/5.2.2")
|
||||||
self.requires(req)
|
self.requires("curaengine/latest@ultimaker/testing")
|
||||||
|
self.requires("pysavitar/5.2.2")
|
||||||
|
self.requires("pynest2d/5.2.2")
|
||||||
|
self.requires("uranium/(latest)@ultimaker/testing")
|
||||||
|
self.requires("cura_binary_data/(latest)@ultimaker/testing")
|
||||||
|
self.requires("cpython/3.10.4")
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
for req in self._um_data()["internal_requirements"]:
|
self.requires("cura_private_data/(latest)@ultimaker/testing")
|
||||||
self.requires(req)
|
self.requires("fdm_materials/(latest)@internal/testing")
|
||||||
|
else:
|
||||||
|
self.requires("fdm_materials/(latest)@ultimaker/testing")
|
||||||
|
|
||||||
def build_requirements(self):
|
def build_requirements(self):
|
||||||
if self.options.devtools:
|
if self.options.devtools:
|
||||||
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type = str):
|
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type = str):
|
||||||
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
||||||
self.tool_requires("gettext/0.21", force_host_context=True)
|
self.tool_requires("gettext/0.21@ultimaker/testing", force_host_context = True)
|
||||||
|
|
||||||
def layout(self):
|
def layout(self):
|
||||||
self.folders.source = "."
|
self.folders.source = "."
|
||||||
self.folders.build = "venv"
|
self.folders.build = "venv"
|
||||||
self.folders.generators = Path(self.folders.build, "conan")
|
self.folders.generators = os.path.join(self.folders.build, "conan")
|
||||||
|
|
||||||
self.cpp.package.libdirs = [os.path.join("site-packages", "cura")]
|
self.cpp.package.libdirs = [os.path.join("site-packages", "cura")]
|
||||||
self.cpp.package.bindirs = ["bin"]
|
self.cpp.package.bindirs = ["bin"]
|
||||||
self.cpp.package.resdirs = ["resources", "plugins", "packaging", "pip_requirements"] # pip_requirements should be the last item in the list
|
self.cpp.package.resdirs = ["resources", "plugins", "packaging", "pip_requirements"] # pip_requirements should be the last item in the list
|
||||||
|
|
||||||
def build(self):
|
|
||||||
if self.options.devtools:
|
|
||||||
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type = str):
|
|
||||||
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
|
||||||
cpp_info = self.dependencies["gettext"].cpp_info
|
|
||||||
for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"):
|
|
||||||
mo_file = self.build_path.joinpath(po_file.with_suffix('.mo').relative_to(self.source_path))
|
|
||||||
mkdir(self, str(unix_path(self, mo_file.parent)))
|
|
||||||
self.run(f"{cpp_info.bindirs[0]}/msgfmt {po_file} -o {mo_file} -f", env="conanbuild", ignore_errors=True)
|
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
|
copy(self, "cura_app.py", self.source_folder, str(self._script_dir))
|
||||||
cura_run_envvars = self._cura_run_env.vars(self, scope = "run")
|
cura_run_envvars = self._cura_run_env.vars(self, scope = "run")
|
||||||
ext = ".ps1" if self.settings.os == "Windows" else ".sh"
|
ext = ".ps1" if self.settings.os == "Windows" else ".sh"
|
||||||
cura_run_envvars.save_script(self.folders.generators.joinpath(f"cura_run_environment{ext}"))
|
cura_run_envvars.save_script(os.path.join(self.folders.generators, f"cura_run_environment{ext}"))
|
||||||
|
|
||||||
vr = VirtualRunEnv(self)
|
vr = VirtualRunEnv(self)
|
||||||
vr.generate()
|
vr.generate()
|
||||||
|
|
||||||
self._generate_cura_version(Path(self.source_folder, "cura"))
|
self._generate_cura_version(os.path.join(self.source_folder, "cura"))
|
||||||
|
|
||||||
if self.options.devtools:
|
if self.options.devtools:
|
||||||
entitlements_file = "'{}'".format(Path(self.source_folder, "packaging", "dmg", "cura.entitlements"))
|
entitlements_file = "'{}'".format(os.path.join(self.source_folder, "packaging", "MacOS", "cura.entitlements"))
|
||||||
self._generate_pyinstaller_spec(location = self.generators_folder,
|
self._generate_pyinstaller_spec(location = self.generators_folder,
|
||||||
entrypoint_location = "'{}'".format(Path(self.source_folder, self._um_data()["runinfo"]["entrypoint"])).replace("\\", "\\\\"),
|
entrypoint_location = "'{}'".format(os.path.join(self.source_folder, self.conan_data["pyinstaller"]["runinfo"]["entrypoint"])).replace("\\", "\\\\"),
|
||||||
icon_path = "'{}'".format(Path(self.source_folder, "packaging", self._um_data()["pyinstaller"]["icon"][str(self.settings.os)])).replace("\\", "\\\\"),
|
icon_path = "'{}'".format(os.path.join(self.source_folder, "packaging", self.conan_data["pyinstaller"]["icon"][str(self.settings.os)])).replace("\\", "\\\\"),
|
||||||
entitlements_file = entitlements_file if self.settings.os == "Macos" else "None")
|
entitlements_file = entitlements_file if self.settings.os == "Macos" else "None")
|
||||||
|
|
||||||
# Update the po files
|
# Update the po and pot files
|
||||||
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type = str):
|
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type=str):
|
||||||
|
vb = VirtualBuildEnv(self)
|
||||||
|
vb.generate()
|
||||||
|
|
||||||
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
||||||
cpp_info = self.dependencies["gettext"].cpp_info
|
cpp_info = self.dependencies["gettext"].cpp_info
|
||||||
|
pot = self.python_requires["translationextractor"].module.ExtractTranslations(self, cpp_info.bindirs[0])
|
||||||
|
pot.generate()
|
||||||
|
|
||||||
|
def build(self):
|
||||||
|
if self.options.devtools:
|
||||||
|
if self.settings.os != "Windows" or self.conf.get("tools.microsoft.bash:path", check_type = str):
|
||||||
|
# FIXME: once m4, autoconf, automake are Conan V2 ready use self.win_bash and add gettext as base tool_requirement
|
||||||
for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"):
|
for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"):
|
||||||
pot_file = self.source_path.joinpath("resources", "i18n", po_file.with_suffix('.pot').name)
|
mo_file = Path(self.build_folder, po_file.with_suffix('.mo').relative_to(self.source_path))
|
||||||
mkdir(self, str(unix_path(self, pot_file.parent)))
|
mo_file = mo_file.parent.joinpath("LC_MESSAGES", mo_file.name)
|
||||||
self.run(f"{cpp_info.bindirs[0]}/msgmerge --no-wrap --no-fuzzy-matching -width=140 -o {po_file} {po_file} {pot_file}",
|
mkdir(self, str(unix_path(self, Path(mo_file).parent)))
|
||||||
env = "conanbuild", ignore_errors = True)
|
cpp_info = self.dependencies["gettext"].cpp_info
|
||||||
|
self.run(f"{cpp_info.bindirs[0]}/msgfmt {po_file} -o {mo_file} -f", env="conanbuild", ignore_errors=True)
|
||||||
|
|
||||||
def imports(self):
|
def imports(self):
|
||||||
self.copy("CuraEngine.exe", root_package = "curaengine", src = "@bindirs", dst = "", keep_path = False)
|
self.copy("CuraEngine.exe", root_package = "curaengine", src = "@bindirs", dst = "", keep_path = False)
|
||||||
|
@ -336,8 +345,6 @@ class CuraConan(ConanFile):
|
||||||
self.copy("*.sig", root_package = "fdm_materials", src = "@resdirs", dst = "resources/materials", keep_path = False)
|
self.copy("*.sig", root_package = "fdm_materials", src = "@resdirs", dst = "resources/materials", keep_path = False)
|
||||||
|
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
self.copy("*.fdm_material", root_package = "fdm_materials_private", src = "@resdirs", dst = "resources/materials", keep_path = False)
|
|
||||||
self.copy("*.sig", root_package = "fdm_materials_private", src = "@resdirs", dst = "resources/materials", keep_path = False)
|
|
||||||
self.copy("*", root_package = "cura_private_data", src = self.deps_cpp_info["cura_private_data"].resdirs[0],
|
self.copy("*", root_package = "cura_private_data", src = self.deps_cpp_info["cura_private_data"].resdirs[0],
|
||||||
dst = self._share_dir.joinpath("cura", "resources"), keep_path = True)
|
dst = self._share_dir.joinpath("cura", "resources"), keep_path = True)
|
||||||
|
|
||||||
|
@ -354,67 +361,54 @@ class CuraConan(ConanFile):
|
||||||
|
|
||||||
def deploy(self):
|
def deploy(self):
|
||||||
# Copy CuraEngine.exe to bindirs of Virtual Python Environment
|
# Copy CuraEngine.exe to bindirs of Virtual Python Environment
|
||||||
# TODO: Fix source such that it will get the curaengine relative from the executable (Python bindir in this case)
|
curaengine = self.dependencies["curaengine"].cpp_info
|
||||||
self.copy_deps("CuraEngine.exe", root_package = "curaengine", src = self.deps_cpp_info["curaengine"].bindirs[0],
|
copy(self, "CuraEngine.exe", curaengine.bindirs[0], str(self._base_dir), keep_path = False)
|
||||||
dst = self._base_dir,
|
copy(self, "CuraEngine", curaengine.bindirs[0], str(self._base_dir), keep_path = False)
|
||||||
keep_path = False)
|
|
||||||
self.copy_deps("CuraEngine", root_package = "curaengine", src = self.deps_cpp_info["curaengine"].bindirs[0], dst = self._base_dir,
|
|
||||||
keep_path = False)
|
|
||||||
|
|
||||||
# Copy resources of Cura (keep folder structure)
|
# Copy resources of Cura (keep folder structure)
|
||||||
self.copy("*", src = self.cpp_info.bindirs[0], dst = self._base_dir, keep_path = False)
|
copy(self, "*", os.path.join(self.package_folder, self.cpp_info.bindirs[0]), str(self._base_dir), keep_path = False)
|
||||||
self.copy("*", src = self.cpp_info.libdirs[0], dst = self._site_packages.joinpath("cura"), keep_path = True)
|
copy(self, "*", os.path.join(self.package_folder, self.cpp_info.libdirs[0]), str(self._site_packages.joinpath("cura")), keep_path = True)
|
||||||
self.copy("*", src = self.cpp_info.resdirs[0], dst = self._share_dir.joinpath("cura", "resources"), keep_path = True)
|
copy(self, "*", os.path.join(self.package_folder, self.cpp_info.resdirs[0]), str(self._share_dir.joinpath("cura", "resources")), keep_path = True)
|
||||||
self.copy("*", src = self.cpp_info.resdirs[1], dst = self._share_dir.joinpath("cura", "plugins"), keep_path = True)
|
copy(self, "*", os.path.join(self.package_folder, self.cpp_info.resdirs[1]), str(self._share_dir.joinpath("cura", "plugins")), keep_path = True)
|
||||||
|
|
||||||
# Copy materials (flat)
|
# Copy materials (flat)
|
||||||
self.copy_deps("*.fdm_material", root_package = "fdm_materials", src = self.deps_cpp_info["fdm_materials"].resdirs[0],
|
fdm_materials = self.dependencies["fdm_materials"].cpp_info
|
||||||
dst = self._share_dir.joinpath("cura", "resources", "materials"), keep_path = False)
|
copy(self, "*", fdm_materials.resdirs[0], str(self._share_dir.joinpath("cura")))
|
||||||
self.copy_deps("*.sig", root_package = "fdm_materials", src = self.deps_cpp_info["fdm_materials"].resdirs[0],
|
|
||||||
dst = self._share_dir.joinpath("cura", "resources", "materials"), keep_path = False)
|
|
||||||
|
|
||||||
# Copy internal resources
|
# Copy internal resources
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
self.copy_deps("*.fdm_material", root_package = "fdm_materials_private", src = self.deps_cpp_info["fdm_materials_private"].resdirs[0],
|
cura_private_data = self.dependencies["cura_private_data"].cpp_info
|
||||||
dst = self._share_dir.joinpath("cura", "resources", "materials"), keep_path = False)
|
copy(self, "*", cura_private_data.resdirs[0], str(self._share_dir.joinpath("cura")))
|
||||||
self.copy_deps("*.sig", root_package = "fdm_materials_private", src = self.deps_cpp_info["fdm_materials_private"].resdirs[0],
|
|
||||||
dst = self._share_dir.joinpath("cura", "resources", "materials"), keep_path = False)
|
|
||||||
self.copy_deps("*", root_package = "cura_private_data", src = self.deps_cpp_info["cura_private_data"].resdirs[0],
|
|
||||||
dst = self._share_dir.joinpath("cura", "resources"), keep_path = True)
|
|
||||||
self.copy_deps("*", root_package = "cura_private_data", src = self.deps_cpp_info["cura_private_data"].resdirs[1],
|
|
||||||
dst = self._share_dir.joinpath("cura", "plugins"), keep_path = True)
|
|
||||||
|
|
||||||
# Copy resources of Uranium (keep folder structure)
|
# Copy resources of Uranium (keep folder structure)
|
||||||
self.copy_deps("*", root_package = "uranium", src = self.deps_cpp_info["uranium"].resdirs[0],
|
uranium = self.dependencies["uranium"].cpp_info
|
||||||
dst = self._share_dir.joinpath("uranium", "resources"), keep_path = True)
|
copy(self, "*", uranium.resdirs[0], str(self._share_dir.joinpath("uranium", "resources")), keep_path = True)
|
||||||
self.copy_deps("*", root_package = "uranium", src = self.deps_cpp_info["uranium"].resdirs[1],
|
copy(self, "*", uranium.resdirs[1], str(self._share_dir.joinpath("uranium", "plugins")), keep_path = True)
|
||||||
dst = self._share_dir.joinpath("uranium", "plugins"), keep_path = True)
|
copy(self, "*", uranium.libdirs[0], str(self._site_packages.joinpath("UM")), keep_path = True)
|
||||||
self.copy_deps("*", root_package = "uranium", src = self.deps_cpp_info["uranium"].libdirs[0],
|
|
||||||
dst = self._site_packages.joinpath("UM"),
|
# TODO: figure out if this is still needed
|
||||||
keep_path = True)
|
copy(self, "*", os.path.join(uranium.libdirs[0], "Qt", "qml", "UM"), str(self._site_packages.joinpath("PyQt6", "Qt6", "qml", "UM")), keep_path = True)
|
||||||
self.copy_deps("*", root_package = "uranium", src = str(Path(self.deps_cpp_info["uranium"].libdirs[0], "Qt", "qml", "UM")),
|
|
||||||
dst = self._site_packages.joinpath("PyQt6", "Qt6", "qml", "UM"),
|
|
||||||
keep_path = True)
|
|
||||||
|
|
||||||
# Copy resources of cura_binary_data
|
# Copy resources of cura_binary_data
|
||||||
self.copy_deps("*", root_package = "cura_binary_data", src = self.deps_cpp_info["cura_binary_data"].resdirs[0],
|
cura_binary_data = self.dependencies["cura_binary_data"].cpp_info
|
||||||
dst = self._share_dir.joinpath("cura"), keep_path = True)
|
copy(self, "*", cura_binary_data.resdirs[0], str(self._share_dir.joinpath("cura")), keep_path = True)
|
||||||
self.copy_deps("*", root_package = "cura_binary_data", src = self.deps_cpp_info["cura_binary_data"].resdirs[1],
|
copy(self, "*", cura_binary_data.resdirs[1], str(self._share_dir.joinpath("uranium")), keep_path = True)
|
||||||
dst = self._share_dir.joinpath("uranium"), keep_path = True)
|
|
||||||
if self.settings.os == "Windows":
|
if self.settings.os == "Windows":
|
||||||
self.copy_deps("*", root_package = "cura_binary_data", src = self.deps_cpp_info["cura_binary_data"].resdirs[2],
|
copy(self, "*", cura_binary_data.resdirs[2], str(self._share_dir.joinpath("windows")), keep_path = True)
|
||||||
dst = self._share_dir.joinpath("windows"), keep_path = True)
|
|
||||||
|
|
||||||
self.copy_deps("*.dll", src = "@bindirs", dst = self._site_packages)
|
for dependency in self.dependencies.host.values():
|
||||||
self.copy_deps("*.pyd", src = "@libdirs", dst = self._site_packages)
|
for bindir in dependency.cpp_info.bindirs:
|
||||||
self.copy_deps("*.pyi", src = "@libdirs", dst = self._site_packages)
|
copy(self, "*.dll", bindir, str(self._site_packages), keep_path = False)
|
||||||
self.copy_deps("*.dylib", src = "@libdirs", dst = self._base_dir.joinpath("lib"))
|
for libdir in dependency.cpp_info.libdirs:
|
||||||
|
copy(self, "*.pyd", libdir, str(self._site_packages), keep_path = False)
|
||||||
|
copy(self, "*.pyi", libdir, str(self._site_packages), keep_path = False)
|
||||||
|
copy(self, "*.dylib", libdir, str(self._base_dir.joinpath("lib")), keep_path = False)
|
||||||
|
|
||||||
# Copy packaging scripts
|
# Copy packaging scripts
|
||||||
self.copy("*", src = self.cpp_info.resdirs[2], dst = self._base_dir.joinpath("packaging"))
|
copy(self, "*", os.path.join(self.package_folder, self.cpp_info.resdirs[2]), str(self._base_dir.joinpath("packaging")), keep_path = True)
|
||||||
|
|
||||||
# Copy requirements.txt's
|
# Copy requirements.txt's
|
||||||
self.copy("*.txt", src = self.cpp_info.resdirs[-1], dst = self._base_dir.joinpath("pip_requirements"))
|
copy(self, "*.txt", os.path.join(self.package_folder, self.cpp_info.resdirs[-1]), str(self._base_dir.joinpath("pip_requirements")), keep_path = False)
|
||||||
|
|
||||||
# Generate the GitHub Action version info Environment
|
# Generate the GitHub Action version info Environment
|
||||||
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)
|
||||||
|
@ -425,32 +419,34 @@ echo "CURA_VERSION_MINOR={{ cura_version_minor }}" >> ${{ env_prefix }}GITHUB_EN
|
||||||
echo "CURA_VERSION_PATCH={{ cura_version_patch }}" >> ${{ env_prefix }}GITHUB_ENV
|
echo "CURA_VERSION_PATCH={{ cura_version_patch }}" >> ${{ env_prefix }}GITHUB_ENV
|
||||||
echo "CURA_VERSION_BUILD={{ cura_version_build }}" >> ${{ env_prefix }}GITHUB_ENV
|
echo "CURA_VERSION_BUILD={{ cura_version_build }}" >> ${{ env_prefix }}GITHUB_ENV
|
||||||
echo "CURA_VERSION_FULL={{ cura_version_full }}" >> ${{ env_prefix }}GITHUB_ENV
|
echo "CURA_VERSION_FULL={{ cura_version_full }}" >> ${{ env_prefix }}GITHUB_ENV
|
||||||
|
echo "CURA_APP_NAME={{ cura_app_name }}" >> ${{ env_prefix }}GITHUB_ENV
|
||||||
""").render(cura_version_major = cura_version.major,
|
""").render(cura_version_major = cura_version.major,
|
||||||
cura_version_minor = cura_version.minor,
|
cura_version_minor = cura_version.minor,
|
||||||
cura_version_patch = cura_version.patch,
|
cura_version_patch = cura_version.patch,
|
||||||
cura_version_build = cura_version.build if cura_version.build != "" else "0",
|
cura_version_build = cura_version.build if cura_version.build != "" else "0",
|
||||||
cura_version_full = self.version,
|
cura_version_full = self.version,
|
||||||
|
cura_app_name = self._app_name,
|
||||||
env_prefix = env_prefix)
|
env_prefix = env_prefix)
|
||||||
|
|
||||||
ext = ".sh" if self.settings.os != "Windows" else ".ps1"
|
ext = ".sh" if self.settings.os != "Windows" else ".ps1"
|
||||||
save(self, self._script_dir.joinpath(f"activate_github_actions_version_env{ext}"), activate_github_actions_version_env)
|
save(self, os.path.join(self._script_dir, f"activate_github_actions_version_env{ext}"), activate_github_actions_version_env)
|
||||||
|
|
||||||
self._generate_cura_version(Path(self._site_packages, "cura"))
|
self._generate_cura_version(os.path.join(self._site_packages, "cura"))
|
||||||
|
|
||||||
entitlements_file = "'{}'".format(Path(self.cpp_info.res_paths[2], "dmg", "cura.entitlements"))
|
entitlements_file = "'{}'".format(Path(self.cpp_info.res_paths[2], "MacOS", "cura.entitlements"))
|
||||||
self._generate_pyinstaller_spec(location = self._base_dir,
|
self._generate_pyinstaller_spec(location = self._base_dir,
|
||||||
entrypoint_location = "'{}'".format(Path(self.cpp_info.bin_paths[0], self._um_data()["runinfo"]["entrypoint"])).replace("\\", "\\\\"),
|
entrypoint_location = "'{}'".format(os.path.join(self.package_folder, self.cpp_info.bindirs[0], self.conan_data["pyinstaller"]["runinfo"]["entrypoint"])).replace("\\", "\\\\"),
|
||||||
icon_path = "'{}'".format(Path(self.cpp_info.res_paths[2], self._um_data()["pyinstaller"]["icon"][str(self.settings.os)])).replace("\\", "\\\\"),
|
icon_path = "'{}'".format(os.path.join(self.package_folder, self.cpp_info.resdirs[2], self.conan_data["pyinstaller"]["icon"][str(self.settings.os)])).replace("\\", "\\\\"),
|
||||||
entitlements_file = entitlements_file if self.settings.os == "Macos" else "None")
|
entitlements_file = entitlements_file if self.settings.os == "Macos" else "None")
|
||||||
|
|
||||||
def package(self):
|
def package(self):
|
||||||
copy(self, "cura_app.py", src = self.source_path, dst = self.package_path.joinpath(self.cpp.package.bindirs[0]))
|
copy(self, "cura_app.py", src = self.source_folder, dst = os.path.join(self.package_folder, self.cpp.package.bindirs[0]))
|
||||||
copy(self, "*", src = self.source_path.joinpath("cura"), dst = self.package_path.joinpath(self.cpp.package.libdirs[0]))
|
copy(self, "*", src = os.path.join(self.source_folder, "cura"), dst = os.path.join(self.package_folder, self.cpp.package.libdirs[0]))
|
||||||
copy(self, "*", src = self.source_path.joinpath("resources"), dst = self.package_path.joinpath(self.cpp.package.resdirs[0]), excludes="*.po")
|
copy(self, "*", src = os.path.join(self.source_folder, "resources"), dst = os.path.join(self.package_folder, self.cpp.package.resdirs[0]))
|
||||||
copy(self, "*", src = self.build_path.joinpath("resources"), dst = self.package_path.joinpath(self.cpp.package.resdirs[0]))
|
copy(self, "*.mo", os.path.join(self.build_folder, "resources"), os.path.join(self.package_folder, "resources"))
|
||||||
copy(self, "*", src = self.source_path.joinpath("plugins"), dst = self.package_path.joinpath(self.cpp.package.resdirs[1]))
|
copy(self, "*", src = os.path.join(self.source_folder, "plugins"), dst = os.path.join(self.package_folder, self.cpp.package.resdirs[1]))
|
||||||
copy(self, "requirement*.txt", src = self.source_path, dst = self.package_path.joinpath(self.cpp.package.resdirs[-1]))
|
copy(self, "requirement*.txt", src = self.source_folder, dst = os.path.join(self.package_folder, self.cpp.package.resdirs[-1]))
|
||||||
copy(self, "*", src = self.source_path.joinpath("packaging"), dst = self.package_path.joinpath(self.cpp.package.resdirs[2]))
|
copy(self, "*", src = os.path.join(self.source_folder, "packaging"), dst = os.path.join(self.package_folder, self.cpp.package.resdirs[2]))
|
||||||
|
|
||||||
def package_info(self):
|
def package_info(self):
|
||||||
self.user_info.pip_requirements = "requirements.txt"
|
self.user_info.pip_requirements = "requirements.txt"
|
||||||
|
@ -458,17 +454,14 @@ echo "CURA_VERSION_FULL={{ cura_version_full }}" >> ${{ env_prefix }}GITHUB_ENV
|
||||||
self.user_info.pip_requirements_build = "requirements-dev.txt"
|
self.user_info.pip_requirements_build = "requirements-dev.txt"
|
||||||
|
|
||||||
if self.in_local_cache:
|
if self.in_local_cache:
|
||||||
self.runenv_info.append_path("PYTHONPATH", str(Path(self.cpp_info.lib_paths[0]).parent))
|
self.runenv_info.append_path("PYTHONPATH", os.path.join(self.package_folder, "site-packages"))
|
||||||
self.runenv_info.append_path("PYTHONPATH", self.cpp_info.res_paths[1]) # Add plugins to PYTHONPATH
|
self.runenv_info.append_path("PYTHONPATH", os.path.join(self.package_folder, "plugins"))
|
||||||
else:
|
else:
|
||||||
self.runenv_info.append_path("PYTHONPATH", self.source_folder)
|
self.runenv_info.append_path("PYTHONPATH", self.source_folder)
|
||||||
self.runenv_info.append_path("PYTHONPATH", os.path.join(self.source_folder, "plugins"))
|
self.runenv_info.append_path("PYTHONPATH", os.path.join(self.source_folder, "plugins"))
|
||||||
|
|
||||||
def package_id(self):
|
def package_id(self):
|
||||||
del self.info.settings.os
|
self.info.clear()
|
||||||
del self.info.settings.compiler
|
|
||||||
del self.info.settings.build_type
|
|
||||||
del self.info.settings.arch
|
|
||||||
|
|
||||||
# The following options shouldn't be used to determine the hash, since these are only used to set the CuraVersion.py
|
# The following options shouldn't be used to determine the hash, since these are only used to set the CuraVersion.py
|
||||||
# which will als be generated by the deploy method during the `conan install cura/5.1.0@_/_`
|
# which will als be generated by the deploy method during the `conan install cura/5.1.0@_/_`
|
||||||
|
|
|
@ -14,7 +14,7 @@ DEFAULT_CURA_LATEST_URL = "https://software.ultimaker.com/latest.json"
|
||||||
# Each release has a fixed SDK version coupled with it. It doesn't make sense to make it configurable because, for
|
# Each release has a fixed SDK version coupled with it. It doesn't make sense to make it configurable because, for
|
||||||
# example Cura 3.2 with SDK version 6.1 will not work. So the SDK version is hard-coded here and left out of the
|
# example Cura 3.2 with SDK version 6.1 will not work. So the SDK version is hard-coded here and left out of the
|
||||||
# CuraVersion.py.in template.
|
# CuraVersion.py.in template.
|
||||||
CuraSDKVersion = "8.2.0"
|
CuraSDKVersion = "8.3.0"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraLatestURL
|
from cura.CuraVersion import CuraLatestURL
|
||||||
|
@ -64,7 +64,7 @@ try:
|
||||||
if CuraAppDisplayName == "":
|
if CuraAppDisplayName == "":
|
||||||
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
||||||
if IsEnterpriseVersion:
|
if IsEnterpriseVersion:
|
||||||
CuraAppDisplayName = CuraAppDisplayName + " Enterprise"
|
CuraAppDisplayName = CuraAppDisplayName
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
||||||
|
|
|
@ -130,7 +130,7 @@ class CuraApplication(QtApplication):
|
||||||
# SettingVersion represents the set of settings available in the machine/extruder definitions.
|
# SettingVersion represents the set of settings available in the machine/extruder definitions.
|
||||||
# You need to make sure that this version number needs to be increased if there is any non-backwards-compatible
|
# You need to make sure that this version number needs to be increased if there is any non-backwards-compatible
|
||||||
# changes of the settings.
|
# changes of the settings.
|
||||||
SettingVersion = 20
|
SettingVersion = 22
|
||||||
|
|
||||||
Created = False
|
Created = False
|
||||||
|
|
||||||
|
@ -2076,3 +2076,7 @@ class CuraApplication(QtApplication):
|
||||||
@classmethod
|
@classmethod
|
||||||
def getInstance(cls, *args, **kwargs) -> "CuraApplication":
|
def getInstance(cls, *args, **kwargs) -> "CuraApplication":
|
||||||
return cast(CuraApplication, super().getInstance(**kwargs))
|
return cast(CuraApplication, super().getInstance(**kwargs))
|
||||||
|
|
||||||
|
@pyqtProperty(bool, constant=True)
|
||||||
|
def isEnterprise(self) -> bool:
|
||||||
|
return ApplicationMetadata.IsEnterpriseVersion
|
||||||
|
|
|
@ -54,6 +54,8 @@ class CompatibleMachineModel(ListModel):
|
||||||
|
|
||||||
# initialize & add current active material:
|
# initialize & add current active material:
|
||||||
for extruder in printer.extruders:
|
for extruder in printer.extruders:
|
||||||
|
if not extruder.activeMaterial:
|
||||||
|
continue
|
||||||
materials = [_makeMaterial(
|
materials = [_makeMaterial(
|
||||||
extruder.activeMaterial.brand, extruder.activeMaterial.name, extruder.activeMaterial.color)]
|
extruder.activeMaterial.brand, extruder.activeMaterial.name, extruder.activeMaterial.color)]
|
||||||
extruder_configs[extruder.getPosition()] = {
|
extruder_configs[extruder.getPosition()] = {
|
||||||
|
|
|
@ -115,7 +115,9 @@ class MachineListModel(ListModel):
|
||||||
online_machine_stacks = list(filter(lambda machine: machine.hasNetworkedConnection(), online_machine_stacks))
|
online_machine_stacks = list(filter(lambda machine: machine.hasNetworkedConnection(), online_machine_stacks))
|
||||||
online_machine_stacks.sort(key=lambda machine: machine.getName().upper())
|
online_machine_stacks.sort(key=lambda machine: machine.getName().upper())
|
||||||
|
|
||||||
other_machine_stacks.remove(abstract_machine)
|
if abstract_machine in other_machine_stacks:
|
||||||
|
other_machine_stacks.remove(abstract_machine)
|
||||||
|
|
||||||
if abstract_machine in online_machine_stacks:
|
if abstract_machine in online_machine_stacks:
|
||||||
online_machine_stacks.remove(abstract_machine)
|
online_machine_stacks.remove(abstract_machine)
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ from threading import Lock # To turn an asynchronous call synchronous.
|
||||||
from typing import Optional, Callable, Tuple, Dict, Any, List, TYPE_CHECKING
|
from typing import Optional, Callable, Tuple, Dict, Any, List, TYPE_CHECKING
|
||||||
from urllib.parse import parse_qs, urlparse
|
from urllib.parse import parse_qs, urlparse
|
||||||
|
|
||||||
|
from UM.Logger import Logger
|
||||||
from cura.OAuth2.Models import AuthenticationResponse, ResponseData, HTTP_STATUS
|
from cura.OAuth2.Models import AuthenticationResponse, ResponseData, HTTP_STATUS
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
|
@ -70,11 +71,13 @@ class AuthorizationRequestHandler(BaseHTTPRequestHandler):
|
||||||
code = self._queryGet(query, "code")
|
code = self._queryGet(query, "code")
|
||||||
state = self._queryGet(query, "state")
|
state = self._queryGet(query, "state")
|
||||||
if state != self.state:
|
if state != self.state:
|
||||||
|
Logger.log("w", f"The provided state was not correct. Got {state} and expected {self.state}")
|
||||||
token_response = AuthenticationResponse(
|
token_response = AuthenticationResponse(
|
||||||
success = False,
|
success = False,
|
||||||
err_message = catalog.i18nc("@message", "The provided state is not correct.")
|
err_message = catalog.i18nc("@message", "The provided state is not correct.")
|
||||||
)
|
)
|
||||||
elif code and self.authorization_helpers is not None and self.verification_code is not None:
|
elif code and self.authorization_helpers is not None and self.verification_code is not None:
|
||||||
|
Logger.log("d", "Timeout when authenticating with the account server.")
|
||||||
token_response = AuthenticationResponse(
|
token_response = AuthenticationResponse(
|
||||||
success = False,
|
success = False,
|
||||||
err_message = catalog.i18nc("@message", "Timeout when authenticating with the account server.")
|
err_message = catalog.i18nc("@message", "Timeout when authenticating with the account server.")
|
||||||
|
@ -92,6 +95,7 @@ class AuthorizationRequestHandler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
elif self._queryGet(query, "error_code") == "user_denied":
|
elif self._queryGet(query, "error_code") == "user_denied":
|
||||||
# Otherwise we show an error message (probably the user clicked "Deny" in the auth dialog).
|
# Otherwise we show an error message (probably the user clicked "Deny" in the auth dialog).
|
||||||
|
Logger.log("d", "User did not give the required permission when authorizing this application")
|
||||||
token_response = AuthenticationResponse(
|
token_response = AuthenticationResponse(
|
||||||
success = False,
|
success = False,
|
||||||
err_message = catalog.i18nc("@message", "Please give the required permissions when authorizing this application.")
|
err_message = catalog.i18nc("@message", "Please give the required permissions when authorizing this application.")
|
||||||
|
@ -99,6 +103,7 @@ class AuthorizationRequestHandler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# We don't know what went wrong here, so instruct the user to check the logs.
|
# We don't know what went wrong here, so instruct the user to check the logs.
|
||||||
|
Logger.log("w", f"Unexpected error when logging in. Error_code: {self._queryGet(query, 'error_code')}, State: {state}")
|
||||||
token_response = AuthenticationResponse(
|
token_response = AuthenticationResponse(
|
||||||
success = False,
|
success = False,
|
||||||
error_message = catalog.i18nc("@message", "Something unexpected happened when trying to log in, please try again.")
|
error_message = catalog.i18nc("@message", "Something unexpected happened when trying to log in, please try again.")
|
||||||
|
|
|
@ -466,7 +466,6 @@ class ExtruderManager(QObject):
|
||||||
return False
|
return False
|
||||||
return list(active_material_node_qualities.keys())[0] != "empty_quality"
|
return list(active_material_node_qualities.keys())[0] != "empty_quality"
|
||||||
|
|
||||||
|
|
||||||
@pyqtSlot(str, result="QVariant")
|
@pyqtSlot(str, result="QVariant")
|
||||||
def getInstanceExtruderValues(self, key: str) -> List:
|
def getInstanceExtruderValues(self, key: str) -> List:
|
||||||
"""Get all extruder values for a certain setting.
|
"""Get all extruder values for a certain setting.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
scriptdir=$(dirname $0)
|
scriptdir=$(dirname $0)
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,10 @@ def copy_metadata_files(dist_path, version):
|
||||||
Copy metadata files for the metadata of the AppImage.
|
Copy metadata files for the metadata of the AppImage.
|
||||||
"""
|
"""
|
||||||
copied_files = {
|
copied_files = {
|
||||||
|
os.path.join("..", "icons", "cura-icon.svg"): os.path.join("usr", "share", "icons", "hicolor", "scalable", "apps", "cura-icon.svg"),
|
||||||
|
os.path.join("..", "icons", "cura-icon_64x64.png"): os.path.join("usr", "share", "icons", "hicolor", "64x64", "apps", "cura-icon.png"),
|
||||||
|
os.path.join("..", "icons", "cura-icon_128x128.png"): os.path.join("usr", "share", "icons", "hicolor", "128x128", "apps", "cura-icon.png"),
|
||||||
|
os.path.join("..", "icons", "cura-icon_256x256.png"): os.path.join("usr", "share", "icons", "hicolor", "256x256", "apps", "cura-icon.png"),
|
||||||
os.path.join("..", "icons", "cura-icon_256x256.png"): "cura-icon.png",
|
os.path.join("..", "icons", "cura-icon_256x256.png"): "cura-icon.png",
|
||||||
"cura.appdata.xml": "cura.appdata.xml",
|
"cura.appdata.xml": "cura.appdata.xml",
|
||||||
"AppRun": "AppRun"
|
"AppRun": "AppRun"
|
||||||
|
@ -37,8 +41,9 @@ def copy_metadata_files(dist_path, version):
|
||||||
|
|
||||||
packaging_dir = os.path.dirname(__file__)
|
packaging_dir = os.path.dirname(__file__)
|
||||||
for source, dest in copied_files.items():
|
for source, dest in copied_files.items():
|
||||||
print("Copying", os.path.join(packaging_dir, source), "to", os.path.join(dist_path, dest))
|
dest_file_path = os.path.join(dist_path, dest)
|
||||||
shutil.copyfile(os.path.join(packaging_dir, source), os.path.join(dist_path, dest))
|
os.makedirs(os.path.dirname(dest_file_path), exist_ok=True)
|
||||||
|
shutil.copyfile(os.path.join(packaging_dir, source), dest_file_path)
|
||||||
|
|
||||||
# Ensure that AppRun has the proper permissions: 755 (user reads, writes and executes, group reads and executes, world reads and executes).
|
# Ensure that AppRun has the proper permissions: 755 (user reads, writes and executes, group reads and executes, world reads and executes).
|
||||||
print("Changing permissions for AppRun")
|
print("Changing permissions for AppRun")
|
||||||
|
|
155
packaging/MacOS/build_macos.py
Normal file
155
packaging/MacOS/build_macos.py
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
# Copyright (c) 2023 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
|
||||||
|
import os
|
||||||
|
import argparse # Command line arguments parsing and help.
|
||||||
|
import subprocess
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
ULTIMAKER_CURA_DOMAIN = os.environ.get("ULTIMAKER_CURA_DOMAIN", "nl.ultimaker.cura")
|
||||||
|
|
||||||
|
def build_dmg(source_path: str, dist_path: str, filename: str, app_name: str) -> None:
|
||||||
|
create_dmg_executable = os.environ.get("CREATE_DMG_EXECUTABLE", "create-dmg")
|
||||||
|
|
||||||
|
arguments = [create_dmg_executable,
|
||||||
|
"--window-pos", "640", "360",
|
||||||
|
"--window-size", "690", "503",
|
||||||
|
"--app-drop-link", "520", "272",
|
||||||
|
"--volicon", f"{source_path}/packaging/icons/VolumeIcons_Cura.icns",
|
||||||
|
"--icon-size", "90",
|
||||||
|
"--icon", app_name, "169", "272",
|
||||||
|
"--eula", f"{source_path}/packaging/cura_license.txt",
|
||||||
|
"--background", f"{source_path}/packaging/MacOs/cura_background_dmg.png",
|
||||||
|
f"{dist_path}/{filename}",
|
||||||
|
f"{dist_path}/{app_name}"]
|
||||||
|
|
||||||
|
subprocess.run(arguments)
|
||||||
|
|
||||||
|
|
||||||
|
def build_pkg(dist_path: str, app_filename: str, component_filename: str, cura_version: str, installer_filename: str) -> None:
|
||||||
|
""" Builds and signs the pkg installer.
|
||||||
|
|
||||||
|
@param dist_path: Path to put output pkg in
|
||||||
|
@param app_filename: name of the .app file to bundle inside the pkg
|
||||||
|
@param component_filename: Name of the pkg component package to bundle the app in
|
||||||
|
@param cura_version: The version is used when automatically replacing existing versions with the installer.
|
||||||
|
@param installer_filename: Name of the installer that contains the component package
|
||||||
|
"""
|
||||||
|
pkg_build_executable = os.environ.get("PKG_BUILD_EXECUTABLE", "pkgbuild")
|
||||||
|
product_build_executable = os.environ.get("PRODUCT_BUILD_EXECUTABLE", "productbuild")
|
||||||
|
codesign_identity = os.environ.get("CODESIGN_IDENTITY")
|
||||||
|
|
||||||
|
# This builds the component package that contains UltiMaker-Cura.app. This component package will be bundled in a distribution package.
|
||||||
|
pkg_build_arguments = [
|
||||||
|
pkg_build_executable,
|
||||||
|
"--identifier", f"{ULTIMAKER_CURA_DOMAIN}_{cura_version}", # If we want to replace previous version automatically remove {cure_version}
|
||||||
|
"--component",
|
||||||
|
Path(dist_path, app_filename),
|
||||||
|
Path(dist_path, component_filename),
|
||||||
|
"--install-location", "/Applications",
|
||||||
|
]
|
||||||
|
|
||||||
|
if codesign_identity:
|
||||||
|
pkg_build_arguments.extend(["--sign", codesign_identity])
|
||||||
|
else:
|
||||||
|
print("CODESIGN_IDENTITY missing. The installer is not being signed")
|
||||||
|
|
||||||
|
subprocess.run(pkg_build_arguments)
|
||||||
|
|
||||||
|
# This automatically generates a distribution.xml file that is used to build the installer.
|
||||||
|
# If you want to make any changes to how the installer functions, this file should be changed to do that.
|
||||||
|
# TODO: Use --product {property_list_file} to pull keys out of file for distribution.xml. This can be used to set min requirements
|
||||||
|
distribution_creation_arguments = [
|
||||||
|
product_build_executable,
|
||||||
|
"--synthesize",
|
||||||
|
"--package", Path(dist_path, component_filename), # Package that will be inside installer
|
||||||
|
Path(dist_path, "distribution.xml"), # Output location for sythesized distributions file
|
||||||
|
]
|
||||||
|
subprocess.run(distribution_creation_arguments)
|
||||||
|
|
||||||
|
# This creates the distributable package (Installer)
|
||||||
|
installer_creation_arguments = [
|
||||||
|
product_build_executable,
|
||||||
|
"--distribution", Path(dist_path, "distribution.xml"),
|
||||||
|
"--package-path", dist_path, # Where to find the component packages mentioned in distribution.xml (UltiMaker-Cura.pkg)
|
||||||
|
Path(dist_path, installer_filename),
|
||||||
|
]
|
||||||
|
|
||||||
|
if codesign_identity:
|
||||||
|
installer_creation_arguments.extend(["--sign", codesign_identity])
|
||||||
|
|
||||||
|
subprocess.run(installer_creation_arguments)
|
||||||
|
|
||||||
|
|
||||||
|
def notarize_file(dist_path: str, filename: str) -> None:
|
||||||
|
""" Notarize a file. This takes 5+ minutes, there is indication that this step is successful."""
|
||||||
|
notarize_user = os.environ.get("MAC_NOTARIZE_USER")
|
||||||
|
notarize_password = os.environ.get("MAC_NOTARIZE_PASS")
|
||||||
|
altool_executable = os.environ.get("ALTOOL_EXECUTABLE", "altool")
|
||||||
|
|
||||||
|
notarize_arguments = [
|
||||||
|
"xcrun", altool_executable,
|
||||||
|
"--notarize-app",
|
||||||
|
"--primary-bundle-id", ULTIMAKER_CURA_DOMAIN,
|
||||||
|
"--username", notarize_user,
|
||||||
|
"--password", notarize_password,
|
||||||
|
"--file", Path(dist_path, filename)
|
||||||
|
]
|
||||||
|
|
||||||
|
subprocess.run(notarize_arguments)
|
||||||
|
|
||||||
|
|
||||||
|
def create_pkg_installer(filename: str, dist_path: str, cura_version: str, app_name: str) -> None:
|
||||||
|
""" Creates a pkg installer from {filename}.app called {filename}-Installer.pkg
|
||||||
|
|
||||||
|
The final package structure is UltiMaker-Cura-XXX-Installer.pkg[UltiMaker-Cura.pkg[UltiMaker-Cura.app]]. The outer
|
||||||
|
pkg file is a distributable pkg (Installer). Inside the distributable pkg there is a component pkg. The component
|
||||||
|
pkg contains the .app file that will be installed in the users Applications folder.
|
||||||
|
|
||||||
|
@param filename: The name of the app file and the app component package file without the extension
|
||||||
|
@param dist_path: The location to read the app from and save the pkg to
|
||||||
|
"""
|
||||||
|
|
||||||
|
filename_stem = Path(filename).stem
|
||||||
|
cura_component_package_name = f"{filename_stem}-Component.pkg" # This is a component package that is nested inside the installer, it contains the UltiMaker-Cura.app file This is the app file that will end up in your applications folder
|
||||||
|
|
||||||
|
build_pkg(dist_path, app_name, cura_component_package_name, cura_version, filename)
|
||||||
|
|
||||||
|
notarize = bool(os.environ.get("NOTARIZE_INSTALLER", "FALSE"))
|
||||||
|
if notarize:
|
||||||
|
notarize_file(dist_path, filename)
|
||||||
|
|
||||||
|
|
||||||
|
def create_dmg(filename: str, dist_path: str, source_path: str, app_name: str) -> None:
|
||||||
|
""" Creates a dmg executable from UltiMaker-Cura.app named {filename}.dmg
|
||||||
|
|
||||||
|
@param filename: The name of the app file and the output dmg file without the extension
|
||||||
|
@param dist_path: The location to read the app from and save the dmg to
|
||||||
|
@param source_path: The location of the project source files
|
||||||
|
"""
|
||||||
|
|
||||||
|
build_dmg(source_path, dist_path, filename, app_name)
|
||||||
|
|
||||||
|
notarize_dmg = bool(os.environ.get("NOTARIZE_DMG", "TRUE"))
|
||||||
|
if notarize_dmg:
|
||||||
|
notarize_file(dist_path, filename)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
parser = argparse.ArgumentParser(description = "Create installer for Cura.")
|
||||||
|
parser.add_argument("source_path", type = str, help = "Path to Pyinstaller source folder")
|
||||||
|
parser.add_argument("dist_path", type = str, help = "Path to Pyinstaller dist folder")
|
||||||
|
parser.add_argument("cura_conan_version", type = str, help="The version of cura")
|
||||||
|
parser.add_argument("filename", type = str, help = "Filename of the pkg/dmg (e.g. 'UltiMaker-Cura-5.1.0-beta-Macos-X64.pkg' or 'UltiMaker-Cura-5.1.0-beta-Macos-X64.dmg')")
|
||||||
|
parser.add_argument("app_name", type = str, help = "Filename of the .app that will be contained within the dmg/pkg")
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
cura_version = args.cura_conan_version.split("/")[-1]
|
||||||
|
|
||||||
|
app_name = f"{args.app_name}.app"
|
||||||
|
|
||||||
|
if Path(args.filename).suffix == ".pkg":
|
||||||
|
create_pkg_installer(args.filename, args.dist_path, cura_version, app_name)
|
||||||
|
else:
|
||||||
|
create_dmg(args.filename, args.dist_path, args.source_path, app_name)
|
Before Width: | Height: | Size: 381 KiB After Width: | Height: | Size: 381 KiB |
|
@ -1,71 +0,0 @@
|
||||||
# Copyright (c) 2022 UltiMaker
|
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import argparse # Command line arguments parsing and help.
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
ULTIMAKER_CURA_DOMAIN = os.environ.get("ULTIMAKER_CURA_DOMAIN", "nl.ultimaker.cura")
|
|
||||||
|
|
||||||
|
|
||||||
def build_dmg(source_path: str, dist_path: str, filename: str) -> None:
|
|
||||||
create_dmg_executable = os.environ.get("CREATE_DMG_EXECUTABLE", "create-dmg")
|
|
||||||
|
|
||||||
arguments = [create_dmg_executable,
|
|
||||||
"--window-pos", "640", "360",
|
|
||||||
"--window-size", "690", "503",
|
|
||||||
"--app-drop-link", "520", "272",
|
|
||||||
"--volicon", f"{source_path}/packaging/icons/VolumeIcons_Cura.icns",
|
|
||||||
"--icon-size", "90",
|
|
||||||
"--icon", "UltiMaker-Cura.app", "169", "272",
|
|
||||||
"--eula", f"{source_path}/packaging/cura_license.txt",
|
|
||||||
"--background", f"{source_path}/packaging/dmg/cura_background_dmg.png",
|
|
||||||
f"{dist_path}/{filename}",
|
|
||||||
f"{dist_path}/UltiMaker-Cura.app"]
|
|
||||||
|
|
||||||
subprocess.run(arguments)
|
|
||||||
|
|
||||||
|
|
||||||
def sign(dist_path: str, filename: str) -> None:
|
|
||||||
codesign_executable = os.environ.get("CODESIGN", "codesign")
|
|
||||||
codesign_identity = os.environ.get("CODESIGN_IDENTITY")
|
|
||||||
|
|
||||||
arguments = [codesign_executable,
|
|
||||||
"-s", codesign_identity,
|
|
||||||
"--timestamp",
|
|
||||||
"-i", f"{ULTIMAKER_CURA_DOMAIN}.dmg", # TODO: check if this really should have the extra dmg. We seem to be doing this also in the old Rundeck scripts
|
|
||||||
f"{dist_path}/{filename}"]
|
|
||||||
|
|
||||||
subprocess.run(arguments)
|
|
||||||
|
|
||||||
|
|
||||||
def notarize(dist_path: str, filename: str) -> None:
|
|
||||||
notarize_user = os.environ.get("MAC_NOTARIZE_USER")
|
|
||||||
notarize_password = os.environ.get("MAC_NOTARIZE_PASS")
|
|
||||||
altool_executable = os.environ.get("ALTOOL_EXECUTABLE", "altool")
|
|
||||||
|
|
||||||
arguments = [
|
|
||||||
"xcrun", altool_executable,
|
|
||||||
"--notarize-app",
|
|
||||||
"--primary-bundle-id", ULTIMAKER_CURA_DOMAIN,
|
|
||||||
"--username", notarize_user,
|
|
||||||
"--password", notarize_password,
|
|
||||||
"--file", f"{dist_path}/{filename}"
|
|
||||||
]
|
|
||||||
|
|
||||||
subprocess.run(arguments)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
parser = argparse.ArgumentParser(description = "Create dmg of Cura.")
|
|
||||||
parser.add_argument("source_path", type=str, help="Path to Conan install Cura folder.")
|
|
||||||
parser.add_argument("dist_path", type=str, help="Path to Pyinstaller dist folder")
|
|
||||||
parser.add_argument("filename", type = str, help = "Filename of the dmg (e.g. 'UltiMaker-Cura-5.1.0-beta-Linux-X64.dmg')")
|
|
||||||
args = parser.parse_args()
|
|
||||||
build_dmg(args.source_path, args.dist_path, args.filename)
|
|
||||||
sign(args.dist_path, args.filename)
|
|
||||||
|
|
||||||
notarize_dmg = bool(os.environ.get("NOTARIZE_DMG", "TRUE"))
|
|
||||||
if notarize_dmg:
|
|
||||||
notarize(args.dist_path, args.filename)
|
|
36
packaging/icons/cura-icon.svg
Normal file
36
packaging/icons/cura-icon.svg
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_1923_105419)">
|
||||||
|
<g filter="url(#filter0_i_1923_105419)">
|
||||||
|
<path d="M461.002 364.531L364.531 461.002H51V147.471L147.471 51H461.002V364.531Z" fill="#196EF0"/>
|
||||||
|
</g>
|
||||||
|
<path d="M452 60V360.917L360.917 452H60V151.083L151.083 60H452Z" stroke="#FAFAFA" stroke-width="20"/>
|
||||||
|
<g filter="url(#filter1_d_1923_105419)">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M193.027 188.44C212.068 170.759 237.671 161 264.154 161H338V191H264.154C244.939 191 226.714 198.098 213.441 210.423C200.205 222.714 193 239.135 193 256C193 272.865 200.205 289.286 213.441 301.577C226.714 313.902 244.939 321 264.154 321H338V351H264.154C237.671 351 212.068 341.241 193.027 323.561C173.949 305.845 163 281.569 163 256C163 230.431 173.949 206.155 193.027 188.44Z" fill="#FAFAFA"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<filter id="filter0_i_1923_105419" x="51" y="51" width="410.002" height="410.002" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||||
|
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||||
|
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
||||||
|
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||||
|
<feOffset/>
|
||||||
|
<feGaussianBlur stdDeviation="50"/>
|
||||||
|
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
|
||||||
|
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>
|
||||||
|
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_1923_105419"/>
|
||||||
|
</filter>
|
||||||
|
<filter id="filter1_d_1923_105419" x="123" y="121" width="255" height="270" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||||
|
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||||
|
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||||
|
<feOffset/>
|
||||||
|
<feGaussianBlur stdDeviation="20"/>
|
||||||
|
<feComposite in2="hardAlpha" operator="out"/>
|
||||||
|
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"/>
|
||||||
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1923_105419"/>
|
||||||
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1923_105419" result="shape"/>
|
||||||
|
</filter>
|
||||||
|
<clipPath id="clip0_1923_105419">
|
||||||
|
<rect width="512" height="512" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
37
packaging/msi/ExcludeComponents.xslt
Normal file
37
packaging/msi/ExcludeComponents.xslt
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<xsl:stylesheet
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"
|
||||||
|
xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||||
|
version="1.0"
|
||||||
|
exclude-result-prefixes="xsl wix" >
|
||||||
|
|
||||||
|
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
|
||||||
|
<xsl:strip-space elements="*"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Find all <Component> elements with <File> elements with Source="" attributes ending in ".exe" and tag it with the "ExeToRemove" key.
|
||||||
|
|
||||||
|
<Component Id="cmpSYYKP6B1M7WSD5KLEQ7PZW4YLOPYG61L" Directory="INSTALLDIR" Guid="*">
|
||||||
|
<File Id="filKUS7ZRMJ0AOKDU6ATYY6IRUSR2ECPDFO" KeyPath="yes" Source="!(wix.StagingAreaPath)\ProofOfPEqualsNP.exe" />
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
Because WiX's Heat.exe only supports XSLT 1.0 and not XSLT 2.0 we cannot use `ends-with( haystack, needle )` (e.g. `ends-with( wix:File/@Source, '.exe' )`...
|
||||||
|
...but we can use this longer `substring` expression instead (see https://github.com/wixtoolset/issues/issues/5609 )
|
||||||
|
-->
|
||||||
|
<xsl:key
|
||||||
|
name="ExeToRemove"
|
||||||
|
match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 3 ) = '.exe' ]"
|
||||||
|
use="@Id"
|
||||||
|
/> <!-- Get the last 4 characters of a string using `substring( s, len(s) - 3 )`, it uses -3 and not -4 because XSLT uses 1-based indexes, not 0-based indexes. -->
|
||||||
|
|
||||||
|
<!-- By default, copy all elements and nodes into the output... -->
|
||||||
|
<xsl:template match="@*|node()">
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- ...but if the element has the "ExeToRemove" key then don't render anything (i.e. removing it from the output) -->
|
||||||
|
<xsl:template match="*[ self::wix:Component or self::wix:ComponentRef ][ key( 'ExeToRemove', @Id ) ]"/>
|
||||||
|
</xsl:stylesheet>
|
155
packaging/msi/UltiMaker-Cura.wxs.jinja
Normal file
155
packaging/msi/UltiMaker-Cura.wxs.jinja
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension">
|
||||||
|
<Product
|
||||||
|
Id="*"
|
||||||
|
Name="{{ app_name }}"
|
||||||
|
Language="1033"
|
||||||
|
Version="{{ version_major }}.{{ version_minor }}.{{ version_patch }}"
|
||||||
|
Manufacturer="{{ company }}"
|
||||||
|
UpgradeCode="{{ upgrade_code }}"
|
||||||
|
>
|
||||||
|
<Package
|
||||||
|
Id="*"
|
||||||
|
InstallerVersion="500"
|
||||||
|
Compressed="yes"
|
||||||
|
InstallScope="perMachine"
|
||||||
|
Manufacturer="{{ company }}"
|
||||||
|
Description="UltiMaker Cura the most popular 3D printing slicer"
|
||||||
|
Keywords="UltiMaker,Cura,3D,printing,slicer"
|
||||||
|
Comments="Copyright (c) {{ year }} {{ company }}" />
|
||||||
|
|
||||||
|
<InstallExecuteSequence>
|
||||||
|
<RemoveExistingProducts After="InstallFinalize">
|
||||||
|
<![CDATA[&UninstallOlderVersionFeature=3]]>
|
||||||
|
</RemoveExistingProducts>
|
||||||
|
</InstallExecuteSequence>
|
||||||
|
|
||||||
|
<Property Id="PREVIOUS_VERSIONS_INSTALLED" Secure="yes" />
|
||||||
|
<Upgrade Id="{{ upgrade_code }}">
|
||||||
|
<UpgradeVersion
|
||||||
|
Minimum="4.13.2" Maximum="{{ version_major }}.{{ version_minor }}.{{ version_patch }}"
|
||||||
|
Property="PREVIOUS_VERSIONS_INSTALLED"
|
||||||
|
IncludeMinimum="no" IncludeMaximum="yes"
|
||||||
|
/>
|
||||||
|
</Upgrade>
|
||||||
|
|
||||||
|
{% if "Enterprise" in app_name %}
|
||||||
|
<Property Id="PREVIOUS_413_INSTALLED" Secure="yes" />
|
||||||
|
<Upgrade Id="53C603BB-2B17-4206-A609-29C2E0D0B0AE">
|
||||||
|
<UpgradeVersion
|
||||||
|
Minimum="1.0.0" Maximum="4.13.2"
|
||||||
|
Property="PREVIOUS_VERSIONS_INSTALLED"
|
||||||
|
IncludeMinimum="yes" IncludeMaximum="yes"
|
||||||
|
/>
|
||||||
|
</Upgrade>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<Condition Message= "OS must be Windows 8.1 64bit or higher.">
|
||||||
|
<![CDATA[Installed OR VersionNT64 >= 600]]>
|
||||||
|
</Condition>
|
||||||
|
|
||||||
|
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||||
|
|
||||||
|
<UIRef Id="WixUI_Mondo" />
|
||||||
|
|
||||||
|
<WixVariable Id="WixUILicenseRtf" Value="{{ cura_license_file }}" />
|
||||||
|
<WixVariable Id="WixUIDialogBmp" Value="{{ cura_banner_side }}" />
|
||||||
|
<WixVariable Id="WixUIBannerBmp" Value="{{ cura_banner_top }}" />
|
||||||
|
|
||||||
|
<Icon Id="ICO_Cura" SourceFile="{{ cura_icon }}" />
|
||||||
|
<Property Id="ARPPRODUCTICON" Value="ICO_Cura" />
|
||||||
|
|
||||||
|
<!--Directory structure-->
|
||||||
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||||
|
<Directory Id="ProgramFiles64Folder">
|
||||||
|
<Directory Id="APPLICATIONFOLDER" Name="{{ app_name }} {{ version }}" />
|
||||||
|
<Directory Id="ProgramMenuFolder">
|
||||||
|
<Directory Id="ShortCutDir" Name="{{ app_name }}" />
|
||||||
|
</Directory>
|
||||||
|
</Directory>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Property Id="ApplicationFolderName" Value="{{ app_name }} {{ version }}" />
|
||||||
|
<Property Id="WixAppFolder" Value="WixPerMachineFolder" />
|
||||||
|
|
||||||
|
<Component Id="CMP_UltiMaker_Cura_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
||||||
|
<File Id="FILE_UltiMaker_Cura_exe" KeyPath="yes" Source="$(var.CuraDir)\{{ main_app }}" />
|
||||||
|
|
||||||
|
<ProgId Id="Cura" Description="{{ app_name }}" Icon="ICO_Cura" Advertise="yes">
|
||||||
|
<ProgId Id="3mf" Advertise="yes">
|
||||||
|
<Extension Id="3mf" ContentType="application/3mf">
|
||||||
|
<Verb Id="open_3mf" Command="Open" Argument='"%1"' />
|
||||||
|
<MIME Advertise="yes" ContentType="application/3mf" Default="yes" />
|
||||||
|
</Extension>
|
||||||
|
</ProgId>
|
||||||
|
<ProgId Id="stl" Advertise="yes">
|
||||||
|
<Extension Id="stl" ContentType="application/stl">
|
||||||
|
<Verb Id="open_stl" Command="Open" Argument='"%1"' />
|
||||||
|
<MIME Advertise="yes" ContentType="application/stl" Default="yes" />
|
||||||
|
</Extension>
|
||||||
|
</ProgId>
|
||||||
|
<ProgId Id="gcode" Advertise="yes">
|
||||||
|
<Extension Id="gcode" ContentType="text/x-gcode">
|
||||||
|
<Verb Id="open_gcode" Command="Open" Argument='"%1"' />
|
||||||
|
<MIME Advertise="yes" ContentType="text/x-gcode" Default="yes" />
|
||||||
|
</Extension>
|
||||||
|
</ProgId>
|
||||||
|
<ProgId Id="ufp" Advertise="yes">
|
||||||
|
<Extension Id="ufp" ContentType="application/x-ufp">
|
||||||
|
<Verb Id="open_ufp" Command="Open" Argument='"%1"' />
|
||||||
|
<MIME Advertise="yes" ContentType="application/x-ufp" Default="yes" />
|
||||||
|
</Extension>
|
||||||
|
</ProgId>
|
||||||
|
<ProgId Id="curapackage" Advertise="yes">
|
||||||
|
<Extension Id='curapackage' ContentType='application/curapackage'>
|
||||||
|
<Verb Id='open_curapackage' Command="Open" Argument='"%1"' />
|
||||||
|
<MIME Advertise="yes" ContentType="application/curapackage" Default="yes" />
|
||||||
|
</Extension>
|
||||||
|
</ProgId>
|
||||||
|
</ProgId>
|
||||||
|
|
||||||
|
<fw:FirewallException Id="FirewallExceptLocalFrontend" Name="Cura (Frontend) Connection (LocalHost)" File="FILE_UltiMaker_Cura_exe" IgnoreFailure="yes">
|
||||||
|
<fw:RemoteAddress>127.0.0.1</fw:RemoteAddress>
|
||||||
|
</fw:FirewallException>
|
||||||
|
</Component>
|
||||||
|
<Component Id="CMP_CuraEngine_exe" Directory="APPLICATIONFOLDER" Guid="*">
|
||||||
|
<File Id="FILE_CuraEngine_exe" KeyPath="yes" Source="$(var.CuraDir)\CuraEngine.exe" />
|
||||||
|
|
||||||
|
<fw:FirewallException Id="FirewallExceptLocalEngine" Name="CuraEngine (Backend) Connection (LocalHost)" File="FILE_CuraEngine_exe" IgnoreFailure="yes">
|
||||||
|
<fw:RemoteAddress>127.0.0.1</fw:RemoteAddress>
|
||||||
|
</fw:FirewallException>
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<!--Shortcuts-->
|
||||||
|
<DirectoryRef Id="ShortCutDir">
|
||||||
|
<Component Id="CMP_Shortcuts" Guid="*">
|
||||||
|
<Shortcut Id="SHRT_Cura"
|
||||||
|
Name="{{ app_name }} {{ version }}"
|
||||||
|
Description="{{ app_name }} {{ version }}"
|
||||||
|
Target="[APPLICATIONFOLDER]\{{ main_app }}"
|
||||||
|
Icon="ICO_Cura" />
|
||||||
|
<Shortcut Id="SHRT_UninstallShortcut"
|
||||||
|
Name="Uninstall {{ app_name }} {{ version }}"
|
||||||
|
Description= "Uninstalls {{ app_name }} {{ version }}"
|
||||||
|
Target="[System64Folder]msiexec.exe"
|
||||||
|
Arguments="/x [ProductCode]" />
|
||||||
|
<RemoveFolder Id="RemoveMyShortcutsDir"
|
||||||
|
On="uninstall" />
|
||||||
|
<RegistryValue Root="HKCU"
|
||||||
|
Key="Software\{{ company }}\{{ app_name }}\{{ version }}"
|
||||||
|
Name="installed"
|
||||||
|
Type="integer"
|
||||||
|
Value="1"
|
||||||
|
KeyPath="yes" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<Feature Id="ProductFeature" Title="{{ app_name }}" Level="1" ConfigurableDirectory="APPLICATIONFOLDER">
|
||||||
|
<ComponentRef Id="CMP_UltiMaker_Cura_exe" />
|
||||||
|
<ComponentRef Id="CMP_CuraEngine_exe" />
|
||||||
|
<ComponentGroupRef Id="NewFilesGroup" />
|
||||||
|
<ComponentRef Id="CMP_Shortcuts" />
|
||||||
|
</Feature>
|
||||||
|
<Feature Id="UninstallOlderVersionFeature" Title="Uninstall previous versions" Level="{{ 1 if "Enterprise" in app_name else 0 }}" Description="..."/>
|
||||||
|
</Product>
|
||||||
|
</Wix>
|
BIN
packaging/msi/banner_side.bmp
Normal file
BIN
packaging/msi/banner_side.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 451 KiB |
BIN
packaging/msi/banner_top.bmp
Normal file
BIN
packaging/msi/banner_top.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
122
packaging/msi/create_windows_msi.py
Normal file
122
packaging/msi/create_windows_msi.py
Normal file
|
@ -0,0 +1,122 @@
|
||||||
|
# Copyright (c) 2022 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
|
||||||
|
import argparse # Command line arguments parsing and help.
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import uuid
|
||||||
|
from datetime import datetime
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from jinja2 import Template
|
||||||
|
|
||||||
|
|
||||||
|
def work_path(filename: Path) -> Path:
|
||||||
|
if not filename.is_absolute():
|
||||||
|
return Path(os.getcwd(), filename.parent)
|
||||||
|
else:
|
||||||
|
return filename.parent
|
||||||
|
|
||||||
|
|
||||||
|
def generate_wxs(source_path: Path, dist_path: Path, filename: Path, app_name: str):
|
||||||
|
source_loc = Path(os.getcwd(), source_path)
|
||||||
|
dist_loc = Path(os.getcwd(), dist_path)
|
||||||
|
work_loc = work_path(filename)
|
||||||
|
work_loc.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
jinja_template_path = Path(source_loc.joinpath("packaging", "msi", "UltiMaker-Cura.wxs.jinja"))
|
||||||
|
with open(jinja_template_path, "r") as f:
|
||||||
|
template = Template(f.read())
|
||||||
|
|
||||||
|
wxs_content = template.render(
|
||||||
|
app_name=f"{app_name}",
|
||||||
|
main_app="UltiMaker-Cura.exe",
|
||||||
|
version=os.getenv('CURA_VERSION_FULL'),
|
||||||
|
version_major=os.environ.get("CURA_VERSION_MAJOR"),
|
||||||
|
version_minor=os.environ.get("CURA_VERSION_MINOR"),
|
||||||
|
version_patch=os.environ.get("CURA_VERSION_PATCH"),
|
||||||
|
company="UltiMaker",
|
||||||
|
web_site="https://ultimaker.com",
|
||||||
|
year=datetime.now().year,
|
||||||
|
upgrade_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name)),
|
||||||
|
cura_license_file=str(source_loc.joinpath("packaging", "msi", "cura_license.rtf")),
|
||||||
|
cura_banner_top=str(source_loc.joinpath("packaging", "msi", "banner_top.bmp")),
|
||||||
|
cura_banner_side=str(source_loc.joinpath("packaging", "msi", "banner_side.bmp")),
|
||||||
|
cura_icon=str(source_loc.joinpath("packaging", "icons", "Cura.ico")),
|
||||||
|
)
|
||||||
|
|
||||||
|
with open(work_loc.joinpath("UltiMaker-Cura.wxs"), "w") as f:
|
||||||
|
f.write(wxs_content)
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.copy(source_loc.joinpath("packaging", "msi", "ExcludeComponents.xslt"),
|
||||||
|
work_loc.joinpath("ExcludeComponents.xslt"))
|
||||||
|
except shutil.SameFileError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def cleanup_artifacts(dist_path: Path):
|
||||||
|
dist_loc = Path(os.getcwd(), dist_path)
|
||||||
|
dirt = [d for d in dist_loc.rglob("__pycache__") if d.is_dir()]
|
||||||
|
dirt += [d for d in dist_loc.rglob("*.dist-info") if d.is_dir()]
|
||||||
|
for d in dirt:
|
||||||
|
if d.exists():
|
||||||
|
shutil.rmtree(d, ignore_errors=True)
|
||||||
|
|
||||||
|
|
||||||
|
def build(dist_path: Path, filename: Path):
|
||||||
|
dist_loc = Path(os.getcwd(), dist_path)
|
||||||
|
work_loc = work_path(filename)
|
||||||
|
wxs_loc = work_loc.joinpath("UltiMaker-Cura.wxs")
|
||||||
|
heat_loc = work_loc.joinpath("HeatFile.wxs")
|
||||||
|
exclude_components_loc = work_loc.joinpath("ExcludeComponents.xslt")
|
||||||
|
build_loc = work_loc.joinpath("build_msi")
|
||||||
|
|
||||||
|
heat_command = ["heat",
|
||||||
|
"dir", f"{dist_loc.as_posix()}\\",
|
||||||
|
"-dr", "APPLICATIONFOLDER",
|
||||||
|
"-cg", "NewFilesGroup",
|
||||||
|
"-sw5150", # Don't pollute logs with warnings from auto generated content
|
||||||
|
"-gg",
|
||||||
|
"-g1",
|
||||||
|
"-sf",
|
||||||
|
"-srd",
|
||||||
|
"-var", "var.CuraDir",
|
||||||
|
"-t", f"{exclude_components_loc.as_posix()}",
|
||||||
|
"-out", f"{heat_loc.as_posix()}"]
|
||||||
|
subprocess.call(heat_command)
|
||||||
|
|
||||||
|
build_command = ["candle",
|
||||||
|
"-arch", "x64",
|
||||||
|
f"-dCuraDir={dist_loc}\\",
|
||||||
|
"-ext", "WixFirewallExtension",
|
||||||
|
"-out", f"{build_loc.as_posix()}\\",
|
||||||
|
f"{wxs_loc.as_posix()}",
|
||||||
|
f"{heat_loc.as_posix()}"]
|
||||||
|
subprocess.call(build_command)
|
||||||
|
|
||||||
|
link_command = ["light",
|
||||||
|
f"{build_loc.joinpath(wxs_loc.name).with_suffix('.wixobj')}",
|
||||||
|
f"{build_loc.joinpath(heat_loc.name).with_suffix('.wixobj')}",
|
||||||
|
"-sw1076", # Don't pollute logs with warnings from auto generated content
|
||||||
|
"-dcl:high", # Use high compression ratio
|
||||||
|
"-sval", # Disable ICE validation otherwise the CI complains
|
||||||
|
"-ext", "WixUIExtension",
|
||||||
|
"-ext", "WixFirewallExtension",
|
||||||
|
"-out", f"{work_loc.joinpath(filename.name)}"]
|
||||||
|
subprocess.call(link_command)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
parser = argparse.ArgumentParser(description="Create Windows msi installer of Cura.")
|
||||||
|
parser.add_argument("source_path", type=Path, help="Path to Conan install Cura folder.")
|
||||||
|
parser.add_argument("dist_path", type=Path, help="Path to Pyinstaller dist folder")
|
||||||
|
parser.add_argument("filename", type=Path,
|
||||||
|
help="Filename of the exe (e.g. 'UltiMaker-Cura-5.1.0-beta-Windows-X64.msi')")
|
||||||
|
parser.add_argument("name", type=str, help="App name (e.g. 'UltiMaker Cura')")
|
||||||
|
args = parser.parse_args()
|
||||||
|
generate_wxs(args.source_path.resolve(), args.dist_path.resolve(), args.filename.resolve(), args.name)
|
||||||
|
cleanup_artifacts(args.dist_path.resolve())
|
||||||
|
build(args.dist_path.resolve(), args.filename)
|
183
packaging/msi/cura_license.rtf
Normal file
183
packaging/msi/cura_license.rtf
Normal file
|
@ -0,0 +1,183 @@
|
||||||
|
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fmodern\fprq1\fcharset0 Courier New;}}
|
||||||
|
{\colortbl ;\red0\green0\blue255;}
|
||||||
|
{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 heading 2;}{\s3 heading 3;}{\s4 heading 4;}}
|
||||||
|
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\s3\sb100\sa100\qc\b\f0\fs27 GNU LESSER GENERAL PUBLIC LICENSE\par
|
||||||
|
\pard\sb100\sa100\qc\b0\fs24 Version 3, 29 June 2007\par
|
||||||
|
\pard Copyright \'a9 2007 Free Software Foundation, Inc. <{\field{\*\fldinst{HYPERLINK "http://fsf.org/"}}{\fldrslt{\ul\cf1 http://fsf.org/}}}\f0\fs24 >\par
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par
|
||||||
|
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.\par
|
||||||
|
\pard\s4\sb100\sa100\b 0. Additional Definitions.\par
|
||||||
|
\pard\sb100\sa100\b0 As used herein, \ldblquote this License\rdblquote refers to version 3 of the GNU Lesser General Public License, and the \ldblquote GNU GPL\rdblquote refers to version 3 of the GNU General Public License.\par
|
||||||
|
\ldblquote The Library\rdblquote refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.\par
|
||||||
|
An \ldblquote Application\rdblquote is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.\par
|
||||||
|
A \ldblquote Combined Work\rdblquote is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the \ldblquote Linked Version\rdblquote .\par
|
||||||
|
The \ldblquote Minimal Corresponding Source\rdblquote for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.\par
|
||||||
|
The \ldblquote Corresponding Application Code\rdblquote for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.\par
|
||||||
|
\pard\s4\sb100\sa100\b 1. Exception to Section 3 of the GNU GPL.\par
|
||||||
|
\pard\sb100\sa100\b0 You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.\par
|
||||||
|
\pard\s4\sb100\sa100\b 2. Conveying Modified Versions.\par
|
||||||
|
\pard\sb100\sa100\b0 If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.\par
|
||||||
|
\pard\s4\sb100\sa100\b 3. Object Code Incorporating Material from Library Header Files.\par
|
||||||
|
\pard\sb100\sa100\b0 The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) Accompany the object code with a copy of the GNU GPL and this license document.\par
|
||||||
|
\pard\s4\sb100\sa100\b 4. Combined Works.\par
|
||||||
|
\pard\sb100\sa100\b0 You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) Accompany the Combined Work with a copy of the GNU GPL and this license document.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 d) Do one of the following: \par
|
||||||
|
\pard\fi-360\li1440\sb100\sa100\tx1440\f2\fs20 o\tab\f0\fs24 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.\par
|
||||||
|
\pard\fi-360\li1440\sb100\sa100\f2\fs20 o\tab\f0\fs24 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)\par
|
||||||
|
\pard\s4\sb100\sa100\b 5. Combined Libraries.\par
|
||||||
|
\pard\sb100\sa100\b0 You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\par
|
||||||
|
\pard\s4\sb100\sa100\b 6. Revised Versions of the GNU Lesser General Public License.\par
|
||||||
|
\pard\sb100\sa100\b0 The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
|
||||||
|
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \ldblquote or any later version\rdblquote applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.\par
|
||||||
|
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.\par
|
||||||
|
\par
|
||||||
|
\pard\s3\sb100\sa100\qc\b\fs27 GNU GENERAL PUBLIC LICENSE\par
|
||||||
|
\pard\sb100\sa100\qc\b0\fs24 Version 3, 29 June 2007\par
|
||||||
|
\pard Copyright \'a9 2007 Free Software Foundation, Inc. <{\field{\*\fldinst{HYPERLINK "http://fsf.org/"}}{\fldrslt{\ul\cf1 http://fsf.org/}}}\f0\fs24 >\par
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par
|
||||||
|
\pard\s3\sb100\sa100\b\fs27 Preamble\par
|
||||||
|
\pard\sb100\sa100\b0\fs24 The GNU General Public License is a free, copyleft license for software and other kinds of works.\par
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\par
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\par
|
||||||
|
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\par
|
||||||
|
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\par
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\par
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\par
|
||||||
|
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\par
|
||||||
|
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\par
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.\par
|
||||||
|
\pard\s3\sb100\sa100\b\fs27 TERMS AND CONDITIONS\par
|
||||||
|
\pard\s4\sb100\sa100\fs24 0. Definitions.\par
|
||||||
|
\pard\sb100\sa100\b0\ldblquote This License\rdblquote refers to version 3 of the GNU General Public License.\par
|
||||||
|
\ldblquote Copyright\rdblquote also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\par
|
||||||
|
\ldblquote The Program\rdblquote refers to any copyrightable work licensed under this License. Each licensee is addressed as \ldblquote you\rdblquote . \ldblquote Licensees\rdblquote and \ldblquote recipients\rdblquote may be individuals or organizations.\par
|
||||||
|
To \ldblquote modify\rdblquote a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \ldblquote modified version\rdblquote of the earlier work or a work \ldblquote based on\rdblquote the earlier work.\par
|
||||||
|
A \ldblquote covered work\rdblquote means either the unmodified Program or a work based on the Program.\par
|
||||||
|
To \ldblquote propagate\rdblquote a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\par
|
||||||
|
To \ldblquote convey\rdblquote a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\par
|
||||||
|
An interactive user interface displays \ldblquote Appropriate Legal Notices\rdblquote to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\par
|
||||||
|
\pard\s4\sb100\sa100\b 1. Source Code.\par
|
||||||
|
\pard\sb100\sa100\b0 The \ldblquote source code\rdblquote for a work means the preferred form of the work for making modifications to it. \ldblquote Object code\rdblquote means any non-source form of a work.\par
|
||||||
|
A \ldblquote Standard Interface\rdblquote means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\par
|
||||||
|
The \ldblquote System Libraries\rdblquote of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \ldblquote Major Component\rdblquote , in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\par
|
||||||
|
The \ldblquote Corresponding Source\rdblquote for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\par
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\par
|
||||||
|
The Corresponding Source for a work in source code form is that same work.\par
|
||||||
|
\pard\s4\sb100\sa100\b 2. Basic Permissions.\par
|
||||||
|
\pard\sb100\sa100\b0 All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\par
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\par
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\par
|
||||||
|
\pard\s4\sb100\sa100\b 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\par
|
||||||
|
\pard\sb100\sa100\b0 No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\par
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\par
|
||||||
|
\pard\s4\sb100\sa100\b 4. Conveying Verbatim Copies.\par
|
||||||
|
\pard\sb100\sa100\b0 You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\par
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\par
|
||||||
|
\pard\s4\sb100\sa100\b 5. Conveying Modified Source Versions.\par
|
||||||
|
\pard\sb100\sa100\b0 You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \ldblquote keep intact all notices\rdblquote .\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\par
|
||||||
|
\pard\sb100\sa100 A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \ldblquote aggregate\rdblquote if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\par
|
||||||
|
\pard\s4\sb100\sa100\b 6. Conveying Non-Source Forms.\par
|
||||||
|
\pard\sb100\sa100\b0 You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\par
|
||||||
|
\pard\sb100\sa100 A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\par
|
||||||
|
A \ldblquote User Product\rdblquote is either (1) a \ldblquote consumer product\rdblquote , which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \ldblquote normally used\rdblquote refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\par
|
||||||
|
\ldblquote Installation Information\rdblquote for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\par
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\par
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\par
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\par
|
||||||
|
\pard\s4\sb100\sa100\b 7. Additional Terms.\par
|
||||||
|
\pard\sb100\sa100\b0\ldblquote Additional permissions\rdblquote are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\par
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\par
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\tx720\f1\fs20\'b7\tab\f0\fs24 a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\par
|
||||||
|
\pard\fi-360\li720\sb100\sa100\f1\fs20\'b7\tab\f0\fs24 b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\par
|
||||||
|
\f1\fs20\'b7\tab\f0\fs24 f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\par
|
||||||
|
\pard\sb100\sa100 All other non-permissive additional terms are considered \ldblquote further restrictions\rdblquote within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\par
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\par
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\par
|
||||||
|
\pard\s4\sb100\sa100\b 8. Termination.\par
|
||||||
|
\pard\sb100\sa100\b0 You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\par
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\par
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\par
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\par
|
||||||
|
\pard\s4\sb100\sa100\b 9. Acceptance Not Required for Having Copies.\par
|
||||||
|
\pard\sb100\sa100\b0 You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\par
|
||||||
|
\pard\s4\sb100\sa100\b 10. Automatic Licensing of Downstream Recipients.\par
|
||||||
|
\pard\sb100\sa100\b0 Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\par
|
||||||
|
An \ldblquote entity transaction\rdblquote is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\par
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\par
|
||||||
|
\pard\s4\sb100\sa100\b 11. Patents.\par
|
||||||
|
\pard\sb100\sa100\b0 A \ldblquote contributor\rdblquote is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \ldblquote contributor version\rdblquote .\par
|
||||||
|
A contributor's \ldblquote essential patent claims\rdblquote are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \ldblquote control\rdblquote includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\par
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\par
|
||||||
|
In the following three paragraphs, a \ldblquote patent license\rdblquote is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \ldblquote grant\rdblquote such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\par
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \ldblquote Knowingly relying\rdblquote means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\par
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\par
|
||||||
|
A patent license is \ldblquote discriminatory\rdblquote if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\par
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\par
|
||||||
|
\pard\s4\sb100\sa100\b 12. No Surrender of Others' Freedom.\par
|
||||||
|
\pard\sb100\sa100\b0 If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\par
|
||||||
|
\pard\s4\sb100\sa100\b 13. Use with the GNU Affero General Public License.\par
|
||||||
|
\pard\sb100\sa100\b0 Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\par
|
||||||
|
\pard\s4\sb100\sa100\b 14. Revised Versions of this License.\par
|
||||||
|
\pard\sb100\sa100\b0 The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \ldblquote or any later version\rdblquote applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\par
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\par
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\par
|
||||||
|
\pard\s4\sb100\sa100\b 15. Disclaimer of Warranty.\par
|
||||||
|
\pard\sb100\sa100\b0 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \ldblquote AS IS\rdblquote WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par
|
||||||
|
\pard\s4\sb100\sa100\b 16. Limitation of Liability.\par
|
||||||
|
\pard\sb100\sa100\b0 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par
|
||||||
|
\pard\s4\sb100\sa100\b 17. Interpretation of Sections 15 and 16.\par
|
||||||
|
\pard\sb100\sa100\b0 If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\par
|
||||||
|
END OF TERMS AND CONDITIONS\par
|
||||||
|
\pard\s3\sb100\sa100\b\fs27 How to Apply These Terms to Your New Programs\par
|
||||||
|
\pard\sb100\sa100\b0\fs24 If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\par
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \ldblquote copyright\rdblquote line and a pointer to where the full notice is found.\par
|
||||||
|
\pard\tx916\tx1832\tx2748\tx3664\tx4580\tx5496\tx6412\tx7328\tx8244\tx9160\tx10076\tx10992\tx11908\tx12824\tx13740\tx14656\f2\fs20 <one line to give the program's name and a brief idea of what it does.>\par
|
||||||
|
Copyright (C) <year> <name of author>\par
|
||||||
|
\par
|
||||||
|
This program is free software: you can redistribute it and/or modify\par
|
||||||
|
it under the terms of the GNU General Public License as published by\par
|
||||||
|
the Free Software Foundation, either version 3 of the License, or\par
|
||||||
|
(at your option) any later version.\par
|
||||||
|
\par
|
||||||
|
This program is distributed in the hope that it will be useful,\par
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of\par
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\par
|
||||||
|
GNU General Public License for more details.\par
|
||||||
|
\par
|
||||||
|
You should have received a copy of the GNU General Public License\par
|
||||||
|
along with this program. If not, see <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f2\fs20 >.\par
|
||||||
|
\pard\sb100\sa100\f0\fs24 Also add information on how to contact you by electronic and paper mail.\par
|
||||||
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\par
|
||||||
|
\pard\tx916\tx1832\tx2748\tx3664\tx4580\tx5496\tx6412\tx7328\tx8244\tx9160\tx10076\tx10992\tx11908\tx12824\tx13740\tx14656\f2\fs20 <program> Copyright (C) <year> <name of author>\par
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\par
|
||||||
|
This is free software, and you are welcome to redistribute it\par
|
||||||
|
under certain conditions; type `show c' for details.\par
|
||||||
|
\pard\sb100\sa100\f0\fs24 The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \ldblquote about box\rdblquote .\par
|
||||||
|
\pard You should also get your employer (if you work as a programmer) or school, if any, to sign a \ldblquote copyright disclaimer\rdblquote for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{\ul\cf1 http://www.gnu.org/licenses/}}}\f0\fs24 >.\par
|
||||||
|
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/philosophy/why-not-lgpl.html"}}{\fldrslt{\ul\cf1 http://www.gnu.org/philosophy/why-not-lgpl.html}}}\f0\fs24 >.\par
|
||||||
|
\pard\sb100\sa100\par
|
||||||
|
}
|
|
@ -43,7 +43,7 @@ from .WorkspaceDialog import WorkspaceDialog
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
_ignored_machine_network_metadata = {
|
_ignored_machine_network_metadata: Set[str] = {
|
||||||
"um_cloud_cluster_id",
|
"um_cloud_cluster_id",
|
||||||
"um_network_key",
|
"um_network_key",
|
||||||
"um_linked_to_account",
|
"um_linked_to_account",
|
||||||
|
@ -55,7 +55,7 @@ _ignored_machine_network_metadata = {
|
||||||
"capabilities",
|
"capabilities",
|
||||||
"octoprint_api_key",
|
"octoprint_api_key",
|
||||||
"is_abstract_machine"
|
"is_abstract_machine"
|
||||||
} # type: Set[str]
|
}
|
||||||
|
|
||||||
|
|
||||||
class ContainerInfo:
|
class ContainerInfo:
|
||||||
|
@ -69,41 +69,41 @@ class ContainerInfo:
|
||||||
|
|
||||||
class QualityChangesInfo:
|
class QualityChangesInfo:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.name = None
|
self.name: Optional[str] = None
|
||||||
self.global_info = None
|
self.global_info = None
|
||||||
self.extruder_info_dict = {} # type: Dict[str, ContainerInfo]
|
self.extruder_info_dict: Dict[str, ContainerInfo] = {}
|
||||||
|
|
||||||
|
|
||||||
class MachineInfo:
|
class MachineInfo:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.container_id = None
|
self.container_id: Optional[str] = None
|
||||||
self.name = None
|
self.name: Optional[str] = None
|
||||||
self.definition_id = None
|
self.definition_id: Optional[str] = None
|
||||||
|
|
||||||
self.metadata_dict = {} # type: Dict[str, str]
|
self.metadata_dict: Dict[str, str] = {}
|
||||||
|
|
||||||
self.quality_type = None
|
self.quality_type: Optional[str] = None
|
||||||
self.intent_category = None
|
self.intent_category: Optional[str] = None
|
||||||
self.custom_quality_name = None
|
self.custom_quality_name: Optional[str] = None
|
||||||
self.quality_changes_info = None
|
self.quality_changes_info: Optional[QualityChangesInfo] = None
|
||||||
self.variant_info = None
|
self.variant_info: Optional[ContainerInfo] = None
|
||||||
|
|
||||||
self.definition_changes_info = None
|
self.definition_changes_info: Optional[ContainerInfo] = None
|
||||||
self.user_changes_info = None
|
self.user_changes_info: Optional[ContainerInfo] = None
|
||||||
|
|
||||||
self.extruder_info_dict = {} # type: Dict[str, ExtruderInfo]
|
self.extruder_info_dict: Dict[str, str] = {}
|
||||||
|
|
||||||
|
|
||||||
class ExtruderInfo:
|
class ExtruderInfo:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.position = None
|
self.position = None
|
||||||
self.enabled = True
|
self.enabled = True
|
||||||
self.variant_info = None
|
self.variant_info: Optional[ContainerInfo] = None
|
||||||
self.root_material_id = None
|
self.root_material_id: Optional[str] = None
|
||||||
|
|
||||||
self.definition_changes_info = None
|
self.definition_changes_info: Optional[ContainerInfo] = None
|
||||||
self.user_changes_info = None
|
self.user_changes_info: Optional[ContainerInfo] = None
|
||||||
self.intent_info = None
|
self.intent_info: Optional[ContainerInfo] = None
|
||||||
|
|
||||||
|
|
||||||
class ThreeMFWorkspaceReader(WorkspaceReader):
|
class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
|
@ -131,14 +131,14 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
# - variant
|
# - variant
|
||||||
self._ignored_instance_container_types = {"quality", "variant"}
|
self._ignored_instance_container_types = {"quality", "variant"}
|
||||||
|
|
||||||
self._resolve_strategies = {} # type: Dict[str, str]
|
self._resolve_strategies: Dict[str, str] = {}
|
||||||
|
|
||||||
self._id_mapping = {} # type: Dict[str, str]
|
self._id_mapping: Dict[str, str] = {}
|
||||||
|
|
||||||
# In Cura 2.5 and 2.6, the empty profiles used to have those long names
|
# In Cura 2.5 and 2.6, the empty profiles used to have those long names
|
||||||
self._old_empty_profile_id_dict = {"empty_%s" % k: "empty" for k in ["material", "variant"]}
|
self._old_empty_profile_id_dict = {"empty_%s" % k: "empty" for k in ["material", "variant"]}
|
||||||
|
|
||||||
self._old_new_materials = {} # type: Dict[str, str]
|
self._old_new_materials: Dict[str, str] = {}
|
||||||
self._machine_info = None
|
self._machine_info = None
|
||||||
|
|
||||||
def _clearState(self):
|
def _clearState(self):
|
||||||
|
@ -461,11 +461,15 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
|
|
||||||
materials_in_extruders_dict = {} # Which material is in which extruder
|
materials_in_extruders_dict = {} # Which material is in which extruder
|
||||||
|
|
||||||
# if the global stack is found, we check if there are conflicts in the extruder stacks
|
# If the global stack is found, we check if there are conflicts in the extruder stacks
|
||||||
for extruder_stack_file in extruder_stack_files:
|
for extruder_stack_file in extruder_stack_files:
|
||||||
serialized = archive.open(extruder_stack_file).read().decode("utf-8")
|
serialized = archive.open(extruder_stack_file).read().decode("utf-8")
|
||||||
|
|
||||||
|
not_upgraded_parser = ConfigParser(interpolation=None)
|
||||||
|
not_upgraded_parser.read_string(serialized)
|
||||||
|
|
||||||
serialized = ExtruderStack._updateSerialized(serialized, extruder_stack_file)
|
serialized = ExtruderStack._updateSerialized(serialized, extruder_stack_file)
|
||||||
parser = ConfigParser(interpolation = None)
|
parser = ConfigParser(interpolation=None)
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
# The check should be done for the extruder stack that's associated with the existing global stack,
|
# The check should be done for the extruder stack that's associated with the existing global stack,
|
||||||
|
@ -497,19 +501,26 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
extruder_info.user_changes_info = instance_container_info_dict[user_changes_id]
|
extruder_info.user_changes_info = instance_container_info_dict[user_changes_id]
|
||||||
self._machine_info.extruder_info_dict[position] = extruder_info
|
self._machine_info.extruder_info_dict[position] = extruder_info
|
||||||
|
|
||||||
|
intent_container_id = parser["containers"][str(_ContainerIndexes.Intent)]
|
||||||
|
|
||||||
intent_id = parser["containers"][str(_ContainerIndexes.Intent)]
|
intent_id = parser["containers"][str(_ContainerIndexes.Intent)]
|
||||||
if intent_id not in ("empty", "empty_intent"):
|
if intent_id not in ("empty", "empty_intent"):
|
||||||
extruder_info.intent_info = instance_container_info_dict[intent_id]
|
if intent_container_id in instance_container_info_dict:
|
||||||
|
extruder_info.intent_info = instance_container_info_dict[intent_id]
|
||||||
|
else:
|
||||||
|
# It can happen that an intent has been renamed. In that case, we should still use the old
|
||||||
|
# name, since we used that to generate the instance_container_info_dict keys.
|
||||||
|
extruder_info.intent_info = instance_container_info_dict[not_upgraded_parser["containers"][str(_ContainerIndexes.Intent)]]
|
||||||
|
|
||||||
if not machine_conflict and containers_found_dict["machine"] and global_stack:
|
if not machine_conflict and containers_found_dict["machine"] and global_stack:
|
||||||
if int(position) >= len(global_stack.extruderList):
|
if int(position) >= len(global_stack.extruderList):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
existing_extruder_stack = global_stack.extruderList[int(position)]
|
existing_extruder_stack = global_stack.extruderList[int(position)]
|
||||||
# check if there are any changes at all in any of the container stacks.
|
# Check if there are any changes at all in any of the container stacks.
|
||||||
id_list = self._getContainerIdListFromSerialized(serialized)
|
id_list = self._getContainerIdListFromSerialized(serialized)
|
||||||
for index, container_id in enumerate(id_list):
|
for index, container_id in enumerate(id_list):
|
||||||
# take into account the old empty container IDs
|
# Take into account the old empty container IDs
|
||||||
container_id = self._old_empty_profile_id_dict.get(container_id, container_id)
|
container_id = self._old_empty_profile_id_dict.get(container_id, container_id)
|
||||||
if existing_extruder_stack.getContainer(index).getId() != container_id:
|
if existing_extruder_stack.getContainer(index).getId() != container_id:
|
||||||
machine_conflict = True
|
machine_conflict = True
|
||||||
|
@ -740,7 +751,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
# quality_changes file. If that's the case, take the extruder count into account when creating the machine
|
# quality_changes file. If that's the case, take the extruder count into account when creating the machine
|
||||||
# or else the extruderList will return only the first extruder, leading to missing non-global settings in
|
# or else the extruderList will return only the first extruder, leading to missing non-global settings in
|
||||||
# the other extruders.
|
# the other extruders.
|
||||||
machine_extruder_count = self._getMachineExtruderCount() # type: Optional[int]
|
machine_extruder_count: Optional[int] = self._getMachineExtruderCount()
|
||||||
global_stack = CuraStackBuilder.createMachine(machine_name, self._machine_info.definition_id, machine_extruder_count)
|
global_stack = CuraStackBuilder.createMachine(machine_name, self._machine_info.definition_id, machine_extruder_count)
|
||||||
if global_stack: # Only switch if creating the machine was successful.
|
if global_stack: # Only switch if creating the machine was successful.
|
||||||
extruder_stack_dict = {str(position): extruder for position, extruder in enumerate(global_stack.extruderList)}
|
extruder_stack_dict = {str(position): extruder for position, extruder in enumerate(global_stack.extruderList)}
|
||||||
|
@ -751,8 +762,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
global_stacks = self._container_registry.findContainerStacks(id = self._dialog.getMachineToOverride(), type = "machine")
|
global_stacks = self._container_registry.findContainerStacks(id = self._dialog.getMachineToOverride(), type = "machine")
|
||||||
if not global_stacks:
|
if not global_stacks:
|
||||||
message = Message(i18n_catalog.i18nc("@info:error Don't translate the XML tag <filename>!",
|
message = Message(i18n_catalog.i18nc("@info:error Don't translate the XML tag <filename>!",
|
||||||
"Project file <filename>{0}</filename> is made using profiles that"
|
"Project file <filename>{0}</filename> is made using profiles that are unknown to this version of UltiMaker Cura.", file_name),
|
||||||
" are unknown to this version of Ultimaker Cura.", file_name),
|
|
||||||
message_type = Message.MessageType.ERROR)
|
message_type = Message.MessageType.ERROR)
|
||||||
message.show()
|
message.show()
|
||||||
self.setWorkspaceName("")
|
self.setWorkspaceName("")
|
||||||
|
@ -868,7 +878,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _loadMetadata(file_name: str) -> Dict[str, Dict[str, Any]]:
|
def _loadMetadata(file_name: str) -> Dict[str, Dict[str, Any]]:
|
||||||
result = dict() # type: Dict[str, Dict[str, Any]]
|
result: Dict[str, Dict[str, Any]] = dict()
|
||||||
try:
|
try:
|
||||||
archive = zipfile.ZipFile(file_name, "r")
|
archive = zipfile.ZipFile(file_name, "r")
|
||||||
except zipfile.BadZipFile:
|
except zipfile.BadZipFile:
|
||||||
|
@ -880,7 +890,6 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
|
|
||||||
metadata_files = [name for name in archive.namelist() if name.endswith("plugin_metadata.json")]
|
metadata_files = [name for name in archive.namelist() if name.endswith("plugin_metadata.json")]
|
||||||
|
|
||||||
|
|
||||||
for metadata_file in metadata_files:
|
for metadata_file in metadata_files:
|
||||||
try:
|
try:
|
||||||
plugin_id = metadata_file.split("/")[0]
|
plugin_id = metadata_file.split("/")[0]
|
||||||
|
@ -921,7 +930,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
quality_changes_name = self._container_registry.uniqueName(quality_changes_name)
|
quality_changes_name = self._container_registry.uniqueName(quality_changes_name)
|
||||||
for position, container_info in container_info_dict.items():
|
for position, container_info in container_info_dict.items():
|
||||||
extruder_stack = None
|
extruder_stack = None
|
||||||
intent_category = None # type: Optional[str]
|
intent_category: Optional[str] = None
|
||||||
if position is not None:
|
if position is not None:
|
||||||
try:
|
try:
|
||||||
extruder_stack = global_stack.extruderList[int(position)]
|
extruder_stack = global_stack.extruderList[int(position)]
|
||||||
|
@ -1162,7 +1171,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
root_material_id = self._old_new_materials.get(root_material_id, root_material_id)
|
root_material_id = self._old_new_materials.get(root_material_id, root_material_id)
|
||||||
|
|
||||||
material_node = machine_node.variants[extruder_stack.variant.getName()].materials[root_material_id]
|
material_node = machine_node.variants[extruder_stack.variant.getName()].materials[root_material_id]
|
||||||
extruder_stack.material = material_node.container # type: InstanceContainer
|
extruder_stack.material = material_node.container
|
||||||
|
|
||||||
def _applyChangesToMachine(self, global_stack, extruder_stack_dict):
|
def _applyChangesToMachine(self, global_stack, extruder_stack_dict):
|
||||||
# Clear all first
|
# Clear all first
|
||||||
|
|
|
@ -143,7 +143,7 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
self._last_num_objects = defaultdict(int) #type: Dict[int, int] # Count number of objects to see if there is something changed
|
self._last_num_objects = defaultdict(int) #type: Dict[int, int] # Count number of objects to see if there is something changed
|
||||||
self._postponed_scene_change_sources = [] #type: List[SceneNode] # scene change is postponed (by a tool)
|
self._postponed_scene_change_sources = [] #type: List[SceneNode] # scene change is postponed (by a tool)
|
||||||
|
|
||||||
self._slice_start_time = None #type: Optional[float]
|
self._time_start_process = None #type: Optional[float]
|
||||||
self._is_disabled = False #type: bool
|
self._is_disabled = False #type: bool
|
||||||
|
|
||||||
application.getPreferences().addPreference("general/auto_slice", False)
|
application.getPreferences().addPreference("general/auto_slice", False)
|
||||||
|
@ -171,10 +171,25 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
)
|
)
|
||||||
self._slicing_error_message.actionTriggered.connect(self._reportBackendError)
|
self._slicing_error_message.actionTriggered.connect(self._reportBackendError)
|
||||||
|
|
||||||
|
self._resetLastSliceTimeStats()
|
||||||
self._snapshot = None #type: Optional[QImage]
|
self._snapshot = None #type: Optional[QImage]
|
||||||
|
|
||||||
application.initializationFinished.connect(self.initialize)
|
application.initializationFinished.connect(self.initialize)
|
||||||
|
|
||||||
|
def _resetLastSliceTimeStats(self) -> None:
|
||||||
|
self._time_start_process = None
|
||||||
|
self._time_send_message = None
|
||||||
|
self._time_end_slice = None
|
||||||
|
|
||||||
|
def resetAndReturnLastSliceTimeStats(self) -> Dict[str, float]:
|
||||||
|
last_slice_data = {
|
||||||
|
"time_start_process": self._time_start_process,
|
||||||
|
"time_send_message": self._time_send_message,
|
||||||
|
"time_end_slice": self._time_end_slice,
|
||||||
|
}
|
||||||
|
self._resetLastSliceTimeStats()
|
||||||
|
return last_slice_data
|
||||||
|
|
||||||
def initialize(self) -> None:
|
def initialize(self) -> None:
|
||||||
application = CuraApplication.getInstance()
|
application = CuraApplication.getInstance()
|
||||||
self._multi_build_plate_model = application.getMultiBuildPlateModel()
|
self._multi_build_plate_model = application.getMultiBuildPlateModel()
|
||||||
|
@ -288,7 +303,7 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
self._createSnapshot()
|
self._createSnapshot()
|
||||||
|
|
||||||
Logger.log("i", "Starting to slice...")
|
Logger.log("i", "Starting to slice...")
|
||||||
self._slice_start_time = time()
|
self._time_start_process = time()
|
||||||
if not self._build_plates_to_be_sliced:
|
if not self._build_plates_to_be_sliced:
|
||||||
self.processingProgress.emit(1.0)
|
self.processingProgress.emit(1.0)
|
||||||
Logger.log("w", "Slice unnecessary, nothing has changed that needs reslicing.")
|
Logger.log("w", "Slice unnecessary, nothing has changed that needs reslicing.")
|
||||||
|
@ -512,8 +527,10 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
# Notify the user that it's now up to the backend to do it's job
|
# Notify the user that it's now up to the backend to do it's job
|
||||||
self.setState(BackendState.Processing)
|
self.setState(BackendState.Processing)
|
||||||
|
|
||||||
if self._slice_start_time:
|
# Handle time reporting.
|
||||||
Logger.log("d", "Sending slice message took %s seconds", time() - self._slice_start_time )
|
self._time_send_message = time()
|
||||||
|
if self._time_start_process:
|
||||||
|
Logger.log("d", "Sending slice message took %s seconds", self._time_send_message - self._time_start_process)
|
||||||
|
|
||||||
def determineAutoSlicing(self) -> bool:
|
def determineAutoSlicing(self) -> bool:
|
||||||
"""Determine enable or disable auto slicing. Return True for enable timer and False otherwise.
|
"""Determine enable or disable auto slicing. Return True for enable timer and False otherwise.
|
||||||
|
@ -750,6 +767,7 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
|
|
||||||
self.setState(BackendState.Done)
|
self.setState(BackendState.Done)
|
||||||
self.processingProgress.emit(1.0)
|
self.processingProgress.emit(1.0)
|
||||||
|
self._time_end_slice = time()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gcode_list = self._scene.gcode_dict[self._start_slice_job_build_plate] #type: ignore #Because we generate this attribute dynamically.
|
gcode_list = self._scene.gcode_dict[self._start_slice_job_build_plate] #type: ignore #Because we generate this attribute dynamically.
|
||||||
|
@ -766,8 +784,8 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
gcode_list[index] = replaced
|
gcode_list[index] = replaced
|
||||||
|
|
||||||
self._slicing = False
|
self._slicing = False
|
||||||
if self._slice_start_time:
|
if self._time_start_process:
|
||||||
Logger.log("d", "Slicing took %s seconds", time() - self._slice_start_time )
|
Logger.log("d", "Slicing took %s seconds", time() - self._time_start_process)
|
||||||
Logger.log("d", "Number of models per buildplate: %s", dict(self._numObjectsPerBuildPlate()))
|
Logger.log("d", "Number of models per buildplate: %s", dict(self._numObjectsPerBuildPlate()))
|
||||||
|
|
||||||
# See if we need to process the sliced layers job.
|
# See if we need to process the sliced layers job.
|
||||||
|
|
|
@ -135,9 +135,21 @@ class DFFileExportAndUploadManager:
|
||||||
file_name = file_upload_response.job_name if file_upload_response.job_name is not None else ""
|
file_name = file_upload_response.job_name if file_upload_response.job_name is not None else ""
|
||||||
else:
|
else:
|
||||||
Logger.log("e", "Wrong response type received. Aborting uploading file to the Digital Library")
|
Logger.log("e", "Wrong response type received. Aborting uploading file to the Digital Library")
|
||||||
|
getBackwardsCompatibleMessage(
|
||||||
|
text = "Upload error",
|
||||||
|
title = f"Failed to upload {file_name}. Received unexpected response from server.",
|
||||||
|
message_type_str = "ERROR",
|
||||||
|
lifetime = 0
|
||||||
|
).show()
|
||||||
return
|
return
|
||||||
if file_name not in self._file_upload_job_metadata:
|
if file_name not in self._file_upload_job_metadata:
|
||||||
Logger.error(f"API response for uploading doesn't match the file name we just uploaded: {file_name} was never uploaded.")
|
Logger.error(f"API response for uploading doesn't match the file name we just uploaded: {file_name} was never uploaded.")
|
||||||
|
getBackwardsCompatibleMessage(
|
||||||
|
text = "Upload error",
|
||||||
|
title = f"Failed to upload {file_name}. Name doesn't match the one sent back in confirmation.",
|
||||||
|
message_type_str = "ERROR",
|
||||||
|
lifetime = 0
|
||||||
|
).show()
|
||||||
return
|
return
|
||||||
with self._message_lock:
|
with self._message_lock:
|
||||||
self.progress_message.show()
|
self.progress_message.show()
|
||||||
|
|
|
@ -501,6 +501,12 @@ class DigitalFactoryController(QObject):
|
||||||
"""
|
"""
|
||||||
if not download_url:
|
if not download_url:
|
||||||
Logger.log("e", "No download url for file '{}'".format(file_name))
|
Logger.log("e", "No download url for file '{}'".format(file_name))
|
||||||
|
getBackwardsCompatibleMessage(
|
||||||
|
text = "Download error",
|
||||||
|
title = f"No download url could be found for '{file_name}'.",
|
||||||
|
message_type_str = "ERROR",
|
||||||
|
lifetime = 0
|
||||||
|
).show()
|
||||||
return
|
return
|
||||||
|
|
||||||
progress_message = Message(text = "{0}/{1}".format(project_name, file_name), dismissable = False, lifetime = 0,
|
progress_message = Message(text = "{0}/{1}".format(project_name, file_name), dismissable = False, lifetime = 0,
|
||||||
|
@ -584,6 +590,12 @@ class DigitalFactoryController(QObject):
|
||||||
"""
|
"""
|
||||||
if self._selected_project_idx == -1:
|
if self._selected_project_idx == -1:
|
||||||
Logger.log("e", "No DF Library project is selected.")
|
Logger.log("e", "No DF Library project is selected.")
|
||||||
|
getBackwardsCompatibleMessage(
|
||||||
|
text = "No Digital Library project was selected",
|
||||||
|
title = "No project selected",
|
||||||
|
message_type_str = "ERROR",
|
||||||
|
lifetime = 0
|
||||||
|
).show()
|
||||||
return
|
return
|
||||||
|
|
||||||
if filename == "":
|
if filename == "":
|
||||||
|
|
|
@ -32,6 +32,7 @@ class FlavorParser:
|
||||||
"""This parser is intended to interpret the common firmware codes among all the different flavors"""
|
"""This parser is intended to interpret the common firmware codes among all the different flavors"""
|
||||||
|
|
||||||
MAX_EXTRUDER_COUNT = 16
|
MAX_EXTRUDER_COUNT = 16
|
||||||
|
DEFAULT_FILAMENT_DIAMETER = 2.85
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
CuraApplication.getInstance().hideMessageSignal.connect(self._onHideMessage)
|
CuraApplication.getInstance().hideMessageSignal.connect(self._onHideMessage)
|
||||||
|
@ -48,7 +49,7 @@ class FlavorParser:
|
||||||
self._is_layers_in_file = False # Does the Gcode have the layers comment?
|
self._is_layers_in_file = False # Does the Gcode have the layers comment?
|
||||||
self._extruder_offsets = {} # type: Dict[int, List[float]] # Offsets for multi extruders. key is index, value is [x-offset, y-offset]
|
self._extruder_offsets = {} # type: Dict[int, List[float]] # Offsets for multi extruders. key is index, value is [x-offset, y-offset]
|
||||||
self._current_layer_thickness = 0.2 # default
|
self._current_layer_thickness = 0.2 # default
|
||||||
self._filament_diameter = 2.85 # default
|
self._current_filament_diameter = 2.85 # default
|
||||||
self._previous_extrusion_value = 0.0 # keep track of the filament retractions
|
self._previous_extrusion_value = 0.0 # keep track of the filament retractions
|
||||||
|
|
||||||
CuraApplication.getInstance().getPreferences().addPreference("gcodereader/show_caution", True)
|
CuraApplication.getInstance().getPreferences().addPreference("gcodereader/show_caution", True)
|
||||||
|
@ -152,7 +153,7 @@ class FlavorParser:
|
||||||
|
|
||||||
def _calculateLineWidth(self, current_point: Position, previous_point: Position, current_extrusion: float, previous_extrusion: float, layer_thickness: float) -> float:
|
def _calculateLineWidth(self, current_point: Position, previous_point: Position, current_extrusion: float, previous_extrusion: float, layer_thickness: float) -> float:
|
||||||
# Area of the filament
|
# Area of the filament
|
||||||
Af = (self._filament_diameter / 2) ** 2 * numpy.pi
|
Af = (self._current_filament_diameter / 2) ** 2 * numpy.pi
|
||||||
# Length of the extruded filament
|
# Length of the extruded filament
|
||||||
de = current_extrusion - previous_extrusion
|
de = current_extrusion - previous_extrusion
|
||||||
# Volume of the extruded filament
|
# Volume of the extruded filament
|
||||||
|
@ -287,7 +288,11 @@ class FlavorParser:
|
||||||
|
|
||||||
def processTCode(self, global_stack, T: int, line: str, position: Position, path: List[List[Union[float, int]]]) -> Position:
|
def processTCode(self, global_stack, T: int, line: str, position: Position, path: List[List[Union[float, int]]]) -> Position:
|
||||||
self._extruder_number = T
|
self._extruder_number = T
|
||||||
self._filament_diameter = global_stack.extruderList[self._extruder_number].getProperty("material_diameter", "value")
|
try:
|
||||||
|
self._current_filament_diameter = global_stack.extruderList[self._extruder_number].getProperty("material_diameter", "value")
|
||||||
|
except IndexError:
|
||||||
|
self._current_filament_diameter = self.DEFAULT_FILAMENT_DIAMETER
|
||||||
|
|
||||||
if self._extruder_number + 1 > len(position.e):
|
if self._extruder_number + 1 > len(position.e):
|
||||||
self._extrusion_length_offset.extend([0] * (self._extruder_number - len(position.e) + 1))
|
self._extrusion_length_offset.extend([0] * (self._extruder_number - len(position.e) + 1))
|
||||||
position.e.extend([0] * (self._extruder_number - len(position.e) + 1))
|
position.e.extend([0] * (self._extruder_number - len(position.e) + 1))
|
||||||
|
@ -323,7 +328,11 @@ class FlavorParser:
|
||||||
if not global_stack:
|
if not global_stack:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
self._filament_diameter = global_stack.extruderList[self._extruder_number].getProperty("material_diameter", "value")
|
try:
|
||||||
|
self._current_filament_diameter = global_stack.extruderList[self._extruder_number].getProperty("material_diameter", "value")
|
||||||
|
except IndexError:
|
||||||
|
# There can be a mismatch between the number of extruders in the G-Code file and the number of extruders in the current machine.
|
||||||
|
self._current_filament_diameter = self.DEFAULT_FILAMENT_DIAMETER
|
||||||
|
|
||||||
scene_node = CuraSceneNode()
|
scene_node = CuraSceneNode()
|
||||||
|
|
||||||
|
|
|
@ -303,18 +303,17 @@ Item
|
||||||
|
|
||||||
Component.onCompleted:
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
update()
|
updateModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
function update()
|
function updateModel()
|
||||||
{
|
{
|
||||||
clear()
|
clear();
|
||||||
for (var i = 1; i <= Cura.MachineManager.activeMachine.maxExtruderCount; i++)
|
for (var i = 1; i <= Cura.MachineManager.activeMachine.maxExtruderCount; i ++) {
|
||||||
{
|
|
||||||
// Use String as value. JavaScript only has Number. PropertyProvider.setPropertyValue()
|
// Use String as value. JavaScript only has Number. PropertyProvider.setPropertyValue()
|
||||||
// takes a QVariant as value, and Number gets translated into a float. This will cause problem
|
// takes a QVariant as value, and Number gets translated into a float. This will cause problem
|
||||||
// for integer settings such as "Number of Extruders".
|
// for integer settings such as "Number of Extruders".
|
||||||
append({ text: String(i), value: String(i) })
|
append({ text: String(i), value: String(i) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -322,7 +321,9 @@ Item
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Cura.MachineManager
|
target: Cura.MachineManager
|
||||||
function onGlobalContainerChanged() { extruderCountModel.update() }
|
function onGlobalContainerChanged() {
|
||||||
|
extruderCountModel.updateModel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"author": "Ultimaker B.V.",
|
"author": "Ultimaker B.V.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"api": 8,
|
"api": 8,
|
||||||
"description": "Manages extensions to the application and allows browsing extensions from the Ultimaker website.",
|
"description": "Manages extensions to the application and allows browsing extensions from the UltiMaker website.",
|
||||||
"i18n-catalog": "cura"
|
"i18n-catalog": "cura"
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,4 +285,33 @@ Window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
color: UM.Theme.getColor("main_background")
|
||||||
|
anchors.fill: parent
|
||||||
|
visible: !Cura.API.account.isLoggedIn && CuraApplication.isEnterprise
|
||||||
|
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
id: signInLabel
|
||||||
|
anchors.centerIn: parent
|
||||||
|
width: Math.round(UM.Theme.getSize("modal_window_minimum").width / 2.5)
|
||||||
|
text: catalog.i18nc("@description","Please sign in to get verified plugins and materials for UltiMaker Cura Enterprise")
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
Cura.PrimaryButton
|
||||||
|
{
|
||||||
|
id: loginButton
|
||||||
|
width: UM.Theme.getSize("account_button").width
|
||||||
|
height: UM.Theme.getSize("account_button").height
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: signInLabel.bottom
|
||||||
|
anchors.topMargin: UM.Theme.getSize("default_margin").height * 2
|
||||||
|
text: catalog.i18nc("@button", "Sign in")
|
||||||
|
fixedWidthMode: true
|
||||||
|
onClicked: Cura.API.account.login()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,8 +45,6 @@ Item
|
||||||
visible: parent.packageHasIcon
|
visible: parent.packageHasIcon
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: packageData.iconUrl
|
source: packageData.iconUrl
|
||||||
sourceSize.height: height
|
|
||||||
sourceSize.width: width
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.ColorImage
|
UM.ColorImage
|
||||||
|
|
|
@ -139,22 +139,28 @@ class PostProcessingPlugin(QObject, Extension):
|
||||||
if self._loaded_scripts: # Already loaded.
|
if self._loaded_scripts: # Already loaded.
|
||||||
return
|
return
|
||||||
|
|
||||||
# The PostProcessingPlugin path is for built-in scripts.
|
# Make sure a "scripts" folder exists in the main configuration folder and the preferences folder.
|
||||||
# The Resources path is where the user should store custom scripts.
|
# On some platforms the resources and preferences folders resolve to the same folder,
|
||||||
# The Preferences path is legacy, where the user may previously have stored scripts.
|
# but on Linux they can be different.
|
||||||
resource_folders = [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Preferences)]
|
for path in set([os.path.join(Resources.getStoragePath(r), "scripts") for r in [Resources.Resources, Resources.Preferences]]):
|
||||||
resource_folders.extend(Resources.getAllPathsForType(Resources.Resources))
|
|
||||||
for root in resource_folders:
|
|
||||||
if root is None:
|
|
||||||
continue
|
|
||||||
path = os.path.join(root, "scripts")
|
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
try:
|
try:
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
except OSError:
|
except OSError:
|
||||||
Logger.log("w", "Unable to create a folder for scripts: " + path)
|
Logger.log("w", "Unable to create a folder for scripts: " + path)
|
||||||
continue
|
|
||||||
|
|
||||||
|
# The PostProcessingPlugin path is for built-in scripts.
|
||||||
|
# The Resources path is where the user should store custom scripts.
|
||||||
|
# The Preferences path is legacy, where the user may previously have stored scripts.
|
||||||
|
resource_folders = [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Preferences)]
|
||||||
|
resource_folders.extend(Resources.getAllPathsForType(Resources.Resources))
|
||||||
|
|
||||||
|
for root in resource_folders:
|
||||||
|
if root is None:
|
||||||
|
continue
|
||||||
|
path = os.path.join(root, "scripts")
|
||||||
|
if not os.path.isdir(path):
|
||||||
|
continue
|
||||||
self.loadScripts(path)
|
self.loadScripts(path)
|
||||||
|
|
||||||
def loadScripts(self, path: str) -> None:
|
def loadScripts(self, path: str) -> None:
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
# Modified: November 16, 2018 by Joshua Pope-Lewis
|
# Modified: November 16, 2018 by Joshua Pope-Lewis
|
||||||
|
|
||||||
# Description: This plugin shows custom messages about your print on the Status bar...
|
# Description: This plugin shows custom messages about your print on the Status bar...
|
||||||
# Please look at the 3 options
|
# Please look at the 5 options
|
||||||
# - Scrolling (SCROLL_LONG_FILENAMES) if enabled in Marlin and you aren't printing a small item select this option.
|
# - Scrolling (SCROLL_LONG_FILENAMES) if enabled in Marlin and you aren't printing a small item select this option.
|
||||||
# - Name: By default it will use the name generated by Cura (EG: TT_Test_Cube) - Type a custom name in here
|
# - Name: By default it will use the name generated by Cura (EG: TT_Test_Cube) - Type a custom name in here
|
||||||
|
# - Start Num: Choose which number you prefer for the initial layer, 0 or 1
|
||||||
# - Max Layer: Enabling this will show how many layers are in the entire print (EG: Layer 1 of 265!)
|
# - Max Layer: Enabling this will show how many layers are in the entire print (EG: Layer 1 of 265!)
|
||||||
|
# - Add prefix 'Printing': Enabling this will add the prefix 'Printing'
|
||||||
|
|
||||||
from ..Script import Script
|
from ..Script import Script
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
|
@ -53,23 +55,30 @@ class DisplayFilenameAndLayerOnLCD(Script):
|
||||||
"description": "Display how many layers are in the entire print on status bar?",
|
"description": "Display how many layers are in the entire print on status bar?",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"default_value": true
|
"default_value": true
|
||||||
|
},
|
||||||
|
"addPrefixPrinting":
|
||||||
|
{
|
||||||
|
"label": "Add prefix 'Printing'?",
|
||||||
|
"description": "This will add the prefix 'Printing'",
|
||||||
|
"type": "bool",
|
||||||
|
"default_value": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}"""
|
}"""
|
||||||
|
|
||||||
def execute(self, data):
|
def execute(self, data):
|
||||||
max_layer = 0
|
max_layer = 0
|
||||||
|
lcd_text = "M117 "
|
||||||
if self.getSettingValueByKey("name") != "":
|
if self.getSettingValueByKey("name") != "":
|
||||||
name = self.getSettingValueByKey("name")
|
name = self.getSettingValueByKey("name")
|
||||||
else:
|
else:
|
||||||
name = Application.getInstance().getPrintInformation().jobName
|
name = Application.getInstance().getPrintInformation().jobName
|
||||||
|
if self.getSettingValueByKey("addPrefixPrinting"):
|
||||||
|
lcd_text += "Printing "
|
||||||
if not self.getSettingValueByKey("scroll"):
|
if not self.getSettingValueByKey("scroll"):
|
||||||
if self.getSettingValueByKey("maxlayer"):
|
lcd_text += "Layer "
|
||||||
lcd_text = "M117 Layer "
|
|
||||||
else:
|
|
||||||
lcd_text = "M117 Printing Layer "
|
|
||||||
else:
|
else:
|
||||||
lcd_text = "M117 Printing " + name + " - Layer "
|
lcd_text += name + " - Layer "
|
||||||
i = self.getSettingValueByKey("startNum")
|
i = self.getSettingValueByKey("startNum")
|
||||||
for layer in data:
|
for layer in data:
|
||||||
display_text = lcd_text + str(i)
|
display_text = lcd_text + str(i)
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
# Copyright (c) 2021 Ultimaker B.V.
|
# Copyright (c) 2023 UltiMaker
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
from ..Script import Script
|
# Revised by GregValiant 10-17-2022
|
||||||
|
# Changed "extrude" line to before the nozzle moves back to the print (if not Repetier or Griffin).
|
||||||
|
# Add M104 option for Resume temperature
|
||||||
|
|
||||||
|
from ..Script import Script
|
||||||
|
import re
|
||||||
from UM.Application import Application #To get the current printer's settings.
|
from UM.Application import Application #To get the current printer's settings.
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
|
|
||||||
|
@ -42,7 +46,7 @@ class PauseAtHeight(Script):
|
||||||
"pause_layer":
|
"pause_layer":
|
||||||
{
|
{
|
||||||
"label": "Pause Layer",
|
"label": "Pause Layer",
|
||||||
"description": "At what layer should the pause occur?",
|
"description": "Enter the Number of the LAST layer you want to finish prior to the pause. Note that 0 is the first layer printed.",
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"value": "math.floor((pause_height - 0.27) / 0.1) + 1",
|
"value": "math.floor((pause_height - 0.27) / 0.1) + 1",
|
||||||
"minimum_value": "0",
|
"minimum_value": "0",
|
||||||
|
@ -63,7 +67,7 @@ class PauseAtHeight(Script):
|
||||||
"label": "Keep motors engaged",
|
"label": "Keep motors engaged",
|
||||||
"description": "Keep the steppers engaged to allow change of filament without moving the head. Applying too much force will move the head/bed anyway",
|
"description": "Keep the steppers engaged to allow change of filament without moving the head. Applying too much force will move the head/bed anyway",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"default_value": true,
|
"default_value": false,
|
||||||
"enabled": "pause_method != \\\"griffin\\\""
|
"enabled": "pause_method != \\\"griffin\\\""
|
||||||
},
|
},
|
||||||
"disarm_timeout":
|
"disarm_timeout":
|
||||||
|
@ -156,6 +160,14 @@ class PauseAtHeight(Script):
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"default_value": false
|
"default_value": false
|
||||||
},
|
},
|
||||||
|
"standby_wait_for_temperature_enabled":
|
||||||
|
{
|
||||||
|
"label": "Use M109 for standby temperature? (M104 when false)",
|
||||||
|
"description": "Wait for hot end after Resume? (If your standby temperature is lower than the Printing temperature CHECK and use M109",
|
||||||
|
"type": "bool",
|
||||||
|
"default_value": true,
|
||||||
|
"enabled": "pause_method not in [\\\"griffin\\\", \\\"repetier\\\"]"
|
||||||
|
},
|
||||||
"standby_temperature":
|
"standby_temperature":
|
||||||
{
|
{
|
||||||
"label": "Standby Temperature",
|
"label": "Standby Temperature",
|
||||||
|
@ -206,7 +218,7 @@ class PauseAtHeight(Script):
|
||||||
"label": "Beep at pause",
|
"label": "Beep at pause",
|
||||||
"description": "Make a beep when pausing",
|
"description": "Make a beep when pausing",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"default_value": true
|
"default_value": false
|
||||||
},
|
},
|
||||||
"beep_length":
|
"beep_length":
|
||||||
{
|
{
|
||||||
|
@ -220,14 +232,14 @@ class PauseAtHeight(Script):
|
||||||
"custom_gcode_before_pause":
|
"custom_gcode_before_pause":
|
||||||
{
|
{
|
||||||
"label": "G-code Before Pause",
|
"label": "G-code Before Pause",
|
||||||
"description": "Any custom g-code to run before the pause, for example, M300 S440 P200 to beep.",
|
"description": "Custom g-code to run before the pause. EX: M300 to beep. Use a comma to separate multiple commands. EX: M400,M300,M117 Pause",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"default_value": ""
|
"default_value": ""
|
||||||
},
|
},
|
||||||
"custom_gcode_after_pause":
|
"custom_gcode_after_pause":
|
||||||
{
|
{
|
||||||
"label": "G-code After Pause",
|
"label": "G-code After Pause",
|
||||||
"description": "Any custom g-code to run after the pause, for example, M300 S440 P200 to beep.",
|
"description": "Custom g-code to run after the pause. Use a comma to separate multiple commands. EX: M204 X8 Y8,M106 S0,M117 Resume",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"default_value": ""
|
"default_value": ""
|
||||||
}
|
}
|
||||||
|
@ -279,13 +291,14 @@ class PauseAtHeight(Script):
|
||||||
move_z = self.getSettingValueByKey("head_move_z")
|
move_z = self.getSettingValueByKey("head_move_z")
|
||||||
layers_started = False
|
layers_started = False
|
||||||
redo_layer = self.getSettingValueByKey("redo_layer")
|
redo_layer = self.getSettingValueByKey("redo_layer")
|
||||||
|
standby_wait_for_temperature_enabled = self.getSettingValueByKey("standby_wait_for_temperature_enabled")
|
||||||
standby_temperature = self.getSettingValueByKey("standby_temperature")
|
standby_temperature = self.getSettingValueByKey("standby_temperature")
|
||||||
firmware_retract = Application.getInstance().getGlobalContainerStack().getProperty("machine_firmware_retract", "value")
|
firmware_retract = Application.getInstance().getGlobalContainerStack().getProperty("machine_firmware_retract", "value")
|
||||||
control_temperatures = Application.getInstance().getGlobalContainerStack().getProperty("machine_nozzle_temp_enabled", "value")
|
control_temperatures = Application.getInstance().getGlobalContainerStack().getProperty("machine_nozzle_temp_enabled", "value")
|
||||||
initial_layer_height = Application.getInstance().getGlobalContainerStack().getProperty("layer_height_0", "value")
|
initial_layer_height = Application.getInstance().getGlobalContainerStack().getProperty("layer_height_0", "value")
|
||||||
display_text = self.getSettingValueByKey("display_text")
|
display_text = self.getSettingValueByKey("display_text")
|
||||||
gcode_before = self.getSettingValueByKey("custom_gcode_before_pause")
|
gcode_before = re.sub("\\s*,\\s*", "\n", self.getSettingValueByKey("custom_gcode_before_pause"))
|
||||||
gcode_after = self.getSettingValueByKey("custom_gcode_after_pause")
|
gcode_after = re.sub("\\s*,\\s*", "\n", self.getSettingValueByKey("custom_gcode_after_pause"))
|
||||||
beep_at_pause = self.getSettingValueByKey("beep_at_pause")
|
beep_at_pause = self.getSettingValueByKey("beep_at_pause")
|
||||||
beep_length = self.getSettingValueByKey("beep_length")
|
beep_length = self.getSettingValueByKey("beep_length")
|
||||||
|
|
||||||
|
@ -465,10 +478,11 @@ class PauseAtHeight(Script):
|
||||||
prepend_gcode += "M117 " + display_text + "\n"
|
prepend_gcode += "M117 " + display_text + "\n"
|
||||||
|
|
||||||
# Set the disarm timeout
|
# Set the disarm timeout
|
||||||
if hold_steppers_on:
|
if pause_method != "griffin":
|
||||||
prepend_gcode += self.putValue(M = 84, S = 3600) + " ; Keep steppers engaged for 1h\n"
|
if hold_steppers_on:
|
||||||
elif disarm_timeout > 0:
|
prepend_gcode += self.putValue(M = 84, S = 3600) + " ; Keep steppers engaged for 1h\n"
|
||||||
prepend_gcode += self.putValue(M = 84, S = disarm_timeout) + " ; Set the disarm timeout\n"
|
elif disarm_timeout > 0:
|
||||||
|
prepend_gcode += self.putValue(M = 84, S = disarm_timeout) + " ; Set the disarm timeout\n"
|
||||||
|
|
||||||
# Beep at pause
|
# Beep at pause
|
||||||
if beep_at_pause:
|
if beep_at_pause:
|
||||||
|
@ -477,14 +491,14 @@ class PauseAtHeight(Script):
|
||||||
|
|
||||||
# Set a custom GCODE section before pause
|
# Set a custom GCODE section before pause
|
||||||
if gcode_before:
|
if gcode_before:
|
||||||
prepend_gcode += gcode_before.replace(";","\n") + "\n"
|
prepend_gcode += gcode_before + "\n"
|
||||||
|
|
||||||
# Wait till the user continues printing
|
# Wait till the user continues printing
|
||||||
prepend_gcode += pause_command + " ; Do the actual pause\n"
|
prepend_gcode += pause_command + " ; Do the actual pause\n"
|
||||||
|
|
||||||
# Set a custom GCODE section after pause
|
# Set a custom GCODE section after pause
|
||||||
if gcode_after:
|
if gcode_after:
|
||||||
prepend_gcode += gcode_after.replace(";","\n") + "\n"
|
prepend_gcode += gcode_after + "\n"
|
||||||
|
|
||||||
if pause_method == "repetier":
|
if pause_method == "repetier":
|
||||||
#Push the filament back,
|
#Push the filament back,
|
||||||
|
@ -530,19 +544,23 @@ class PauseAtHeight(Script):
|
||||||
elif pause_method != "griffin":
|
elif pause_method != "griffin":
|
||||||
if control_temperatures:
|
if control_temperatures:
|
||||||
# Set extruder resume temperature
|
# Set extruder resume temperature
|
||||||
prepend_gcode += self.putValue(M = 109, S = int(target_temperature.get(current_t, 0))) + " ; resume temperature\n"
|
if standby_wait_for_temperature_enabled:
|
||||||
|
WFT_numeric = 109
|
||||||
|
Temp_resume_Text = " ; WAIT for resume temperature\n"
|
||||||
|
else:
|
||||||
|
WFT_numeric = 104
|
||||||
|
Temp_resume_Text = " ; resume temperature\n"
|
||||||
|
|
||||||
|
prepend_gcode += self.putValue(M=WFT_numeric,
|
||||||
|
S=int(target_temperature.get(current_t, 0))) + Temp_resume_Text
|
||||||
|
|
||||||
if extrude_amount != 0: # Need to prime after the pause.
|
if extrude_amount != 0: # Need to prime after the pause.
|
||||||
# Push the filament back.
|
# Push the filament back.
|
||||||
if retraction_amount != 0:
|
if extrude_speed == 0:
|
||||||
prepend_gcode += self.putValue(G = 1, E = retraction_amount, F = retraction_speed * 60) + "\n"
|
extrude_speed = 25
|
||||||
|
|
||||||
# Prime the material.
|
if extrude_amount != 0:
|
||||||
prepend_gcode += self.putValue(G = 1, E = extrude_amount, F = extrude_speed * 60) + "; Extra extrude after the unpause\n"
|
prepend_gcode += self.putValue(G=1, E=extrude_amount, F=extrude_speed * 60) + "\n"
|
||||||
|
|
||||||
# And retract again to make the movements back to the starting position.
|
|
||||||
if retraction_amount != 0:
|
|
||||||
prepend_gcode += self.putValue(G = 1, E = -retraction_amount, F = retraction_speed * 60) + "\n"
|
|
||||||
|
|
||||||
# Move the head back
|
# Move the head back
|
||||||
if park_enabled:
|
if park_enabled:
|
||||||
|
@ -556,8 +574,6 @@ class PauseAtHeight(Script):
|
||||||
retraction_count = 1 if control_temperatures else 3 #Retract more if we don't control the temperature.
|
retraction_count = 1 if control_temperatures else 3 #Retract more if we don't control the temperature.
|
||||||
for i in range(retraction_count):
|
for i in range(retraction_count):
|
||||||
prepend_gcode += self.putValue(G = 11) + "\n"
|
prepend_gcode += self.putValue(G = 11) + "\n"
|
||||||
else:
|
|
||||||
prepend_gcode += self.putValue(G = 1, E = retraction_amount, F = retraction_speed * 60) + "\n"
|
|
||||||
|
|
||||||
if current_extrusion_f != 0:
|
if current_extrusion_f != 0:
|
||||||
prepend_gcode += self.putValue(G = 1, F = current_extrusion_f) + " ; restore extrusion feedrate\n"
|
prepend_gcode += self.putValue(G = 1, F = current_extrusion_f) + " ; restore extrusion feedrate\n"
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2023 UltiMaker B.V.
|
||||||
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
import math
|
|
||||||
|
|
||||||
from ..Script import Script
|
from ..Script import Script
|
||||||
|
|
||||||
|
from UM.Application import Application # To get current absolute/relative setting.
|
||||||
|
from UM.Math.Vector import Vector
|
||||||
|
|
||||||
|
from typing import List, Tuple
|
||||||
|
|
||||||
|
|
||||||
class RetractContinue(Script):
|
class RetractContinue(Script):
|
||||||
"""Continues retracting during all travel moves."""
|
"""Continues retracting during all travel moves."""
|
||||||
|
|
||||||
def getSettingDataString(self):
|
def getSettingDataString(self) -> str:
|
||||||
return """{
|
return """{
|
||||||
"name": "Retract Continue",
|
"name": "Retract Continue",
|
||||||
"key": "RetractContinue",
|
"key": "RetractContinue",
|
||||||
|
@ -27,58 +30,90 @@ class RetractContinue(Script):
|
||||||
}
|
}
|
||||||
}"""
|
}"""
|
||||||
|
|
||||||
def execute(self, data):
|
def _getTravelMove(self, travel_move: str, default_pos: Vector) -> Tuple[Vector, float]:
|
||||||
current_e = 0
|
travel = Vector(
|
||||||
current_x = 0
|
self.getValue(travel_move, "X", default_pos.x),
|
||||||
current_y = 0
|
self.getValue(travel_move, "Y", default_pos.y),
|
||||||
current_z = 0
|
self.getValue(travel_move, "Z", default_pos.z)
|
||||||
|
)
|
||||||
|
f = self.getValue(travel_move, "F", -1.0)
|
||||||
|
return travel, f
|
||||||
|
|
||||||
|
def _travelMoveString(self, travel: Vector, f: float, e: float) -> str:
|
||||||
|
# Note that only G1 moves are written, since extrusion is included.
|
||||||
|
if f <= 0.0:
|
||||||
|
return f"G1 X{travel.x:.5f} Y{travel.y:.5f} Z{travel.z:.5f} E{e:.5f}"
|
||||||
|
else:
|
||||||
|
return f"G1 F{f:.5f} X{travel.x:.5f} Y{travel.y:.5f} Z{travel.z:.5f} E{e:.5f}"
|
||||||
|
|
||||||
|
def execute(self, data: List[str]) -> List[str]:
|
||||||
|
current_e = 0.0
|
||||||
|
to_compensate = 0 # Used when extrusion mode is relative.
|
||||||
|
is_active = False # Whether retract-continue is in effect.
|
||||||
|
|
||||||
|
current_pos = Vector(0.0, 0.0, 0.0)
|
||||||
|
last_pos = Vector(0.0, 0.0, 0.0)
|
||||||
|
|
||||||
extra_retraction_speed = self.getSettingValueByKey("extra_retraction_speed")
|
extra_retraction_speed = self.getSettingValueByKey("extra_retraction_speed")
|
||||||
|
relative_extrusion = Application.getInstance().getGlobalContainerStack().getProperty(
|
||||||
|
"relative_extrusion", "value"
|
||||||
|
)
|
||||||
|
|
||||||
for layer_number, layer in enumerate(data):
|
for layer_number, layer in enumerate(data):
|
||||||
lines = layer.split("\n")
|
lines = layer.split("\n")
|
||||||
for line_number, line in enumerate(lines):
|
for line_number, line in enumerate(lines):
|
||||||
if self.getValue(line, "G") in {0, 1}: # Track X,Y,Z location.
|
|
||||||
current_x = self.getValue(line, "X", current_x)
|
|
||||||
current_y = self.getValue(line, "Y", current_y)
|
|
||||||
current_z = self.getValue(line, "Z", current_z)
|
|
||||||
if self.getValue(line, "G") == 1:
|
|
||||||
if not self.getValue(line, "E"): # Either None or 0: Not a retraction then.
|
|
||||||
continue
|
|
||||||
new_e = self.getValue(line, "E")
|
|
||||||
if new_e - current_e >= -0.0001: # Not a retraction. Account for floating point rounding errors.
|
|
||||||
current_e = new_e
|
|
||||||
continue
|
|
||||||
# A retracted travel move may consist of multiple commands, due to combing.
|
|
||||||
# This continues retracting over all of these moves and only unretracts at the end.
|
|
||||||
delta_line = 1
|
|
||||||
dx = current_x # Track the difference in X for this move only to compute the length of the travel.
|
|
||||||
dy = current_y
|
|
||||||
dz = current_z
|
|
||||||
while line_number + delta_line < len(lines) and self.getValue(lines[line_number + delta_line], "G") != 1:
|
|
||||||
travel_move = lines[line_number + delta_line]
|
|
||||||
if self.getValue(travel_move, "G") != 0:
|
|
||||||
delta_line += 1
|
|
||||||
continue
|
|
||||||
travel_x = self.getValue(travel_move, "X", dx)
|
|
||||||
travel_y = self.getValue(travel_move, "Y", dy)
|
|
||||||
travel_z = self.getValue(travel_move, "Z", dz)
|
|
||||||
f = self.getValue(travel_move, "F", "no f")
|
|
||||||
length = math.sqrt((travel_x - dx) * (travel_x - dx) + (travel_y - dy) * (travel_y - dy) + (travel_z - dz) * (travel_z - dz)) # Length of the travel move.
|
|
||||||
new_e -= length * extra_retraction_speed # New retraction is by ratio of this travel move.
|
|
||||||
if f == "no f":
|
|
||||||
new_travel_move = "G1 X{travel_x} Y{travel_y} Z{travel_z} E{new_e}".format(travel_x = travel_x, travel_y = travel_y, travel_z = travel_z, new_e = new_e)
|
|
||||||
else:
|
|
||||||
new_travel_move = "G1 F{f} X{travel_x} Y{travel_y} Z{travel_z} E{new_e}".format(f = f, travel_x = travel_x, travel_y = travel_y, travel_z = travel_z, new_e = new_e)
|
|
||||||
lines[line_number + delta_line] = new_travel_move
|
|
||||||
|
|
||||||
delta_line += 1
|
# Focus on move-type lines.
|
||||||
dx = travel_x
|
code_g = self.getValue(line, "G")
|
||||||
dy = travel_y
|
if code_g not in [0, 1]:
|
||||||
dz = travel_z
|
continue
|
||||||
|
|
||||||
current_e = new_e
|
# Track X,Y,Z location.
|
||||||
|
last_pos = last_pos.set(current_pos.x, current_pos.y, current_pos.z)
|
||||||
|
current_pos = current_pos.set(
|
||||||
|
self.getValue(line, "X", current_pos.x),
|
||||||
|
self.getValue(line, "Y", current_pos.y),
|
||||||
|
self.getValue(line, "Z", current_pos.z)
|
||||||
|
)
|
||||||
|
|
||||||
|
# Track extrusion 'axis' position.
|
||||||
|
last_e = current_e
|
||||||
|
e_value = self.getValue(line, "E")
|
||||||
|
if e_value:
|
||||||
|
current_e = (current_e if relative_extrusion else 0) + e_value
|
||||||
|
|
||||||
|
# Handle lines: Detect retractions and compensate relative if G1, potential retract-continue if G0.
|
||||||
|
if code_g == 1:
|
||||||
|
if last_e > (current_e + 0.0001): # Account for floating point inaccuracies.
|
||||||
|
|
||||||
|
# There is a retraction, each following G0 command needs to continue the retraction.
|
||||||
|
is_active = True
|
||||||
|
continue
|
||||||
|
|
||||||
|
elif relative_extrusion and is_active:
|
||||||
|
|
||||||
|
# If 'relative', the first G1 command after the total retraction will have to compensate more.
|
||||||
|
travel, f = self._getTravelMove(lines[line_number], current_pos)
|
||||||
|
lines[line_number] = self._travelMoveString(travel, f, to_compensate + e_value)
|
||||||
|
to_compensate = 0.0
|
||||||
|
|
||||||
|
# There is no retraction (see continue in the retract-clause) and everything else has been handled.
|
||||||
|
is_active = False
|
||||||
|
|
||||||
|
elif code_g == 0:
|
||||||
|
if not is_active:
|
||||||
|
continue
|
||||||
|
|
||||||
|
# The retract-continue is active, so each G0 until the next extrusion needs to continue retraction.
|
||||||
|
travel, f = self._getTravelMove(lines[line_number], current_pos)
|
||||||
|
travel_length = (current_pos - last_pos).length()
|
||||||
|
extra_retract = travel_length * extra_retraction_speed
|
||||||
|
new_e = (0 if relative_extrusion else current_e) - extra_retract
|
||||||
|
to_compensate += extra_retract
|
||||||
|
current_e -= extra_retract
|
||||||
|
lines[line_number] = self._travelMoveString(travel, f, new_e)
|
||||||
|
|
||||||
new_layer = "\n".join(lines)
|
new_layer = "\n".join(lines)
|
||||||
data[layer_number] = new_layer
|
data[layer_number] = new_layer
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
|
@ -125,10 +125,6 @@ class SimulationView(CuraView):
|
||||||
self._only_show_top_layers = bool(Application.getInstance().getPreferences().getValue("view/only_show_top_layers"))
|
self._only_show_top_layers = bool(Application.getInstance().getPreferences().getValue("view/only_show_top_layers"))
|
||||||
self._compatibility_mode = self._evaluateCompatibilityMode()
|
self._compatibility_mode = self._evaluateCompatibilityMode()
|
||||||
|
|
||||||
self._wireprint_warning_message = Message(catalog.i18nc("@info:status",
|
|
||||||
"Cura does not accurately display layers when Wire Printing is enabled."),
|
|
||||||
title = catalog.i18nc("@info:title", "Simulation View"),
|
|
||||||
message_type = Message.MessageType.WARNING)
|
|
||||||
self._slice_first_warning_message = Message(catalog.i18nc("@info:status",
|
self._slice_first_warning_message = Message(catalog.i18nc("@info:status",
|
||||||
"Nothing is shown because you need to slice first."),
|
"Nothing is shown because you need to slice first."),
|
||||||
title = catalog.i18nc("@info:title", "No layers to show"),
|
title = catalog.i18nc("@info:title", "No layers to show"),
|
||||||
|
@ -671,11 +667,8 @@ class SimulationView(CuraView):
|
||||||
elif event.type == Event.ViewDeactivateEvent:
|
elif event.type == Event.ViewDeactivateEvent:
|
||||||
self._controller.getScene().getRoot().childrenChanged.disconnect(self._onSceneChanged)
|
self._controller.getScene().getRoot().childrenChanged.disconnect(self._onSceneChanged)
|
||||||
Application.getInstance().getPreferences().preferenceChanged.disconnect(self._onPreferencesChanged)
|
Application.getInstance().getPreferences().preferenceChanged.disconnect(self._onPreferencesChanged)
|
||||||
self._wireprint_warning_message.hide()
|
|
||||||
self._slice_first_warning_message.hide()
|
self._slice_first_warning_message.hide()
|
||||||
Application.getInstance().globalContainerStackChanged.disconnect(self._onGlobalStackChanged)
|
Application.getInstance().globalContainerStackChanged.disconnect(self._onGlobalStackChanged)
|
||||||
if self._global_container_stack:
|
|
||||||
self._global_container_stack.propertyChanged.disconnect(self._onPropertyChanged)
|
|
||||||
if self._nozzle_node:
|
if self._nozzle_node:
|
||||||
self._nozzle_node.setParent(None)
|
self._nozzle_node.setParent(None)
|
||||||
|
|
||||||
|
@ -698,23 +691,10 @@ class SimulationView(CuraView):
|
||||||
return self._current_layer_jumps
|
return self._current_layer_jumps
|
||||||
|
|
||||||
def _onGlobalStackChanged(self) -> None:
|
def _onGlobalStackChanged(self) -> None:
|
||||||
if self._global_container_stack:
|
|
||||||
self._global_container_stack.propertyChanged.disconnect(self._onPropertyChanged)
|
|
||||||
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
|
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
if self._global_container_stack:
|
if self._global_container_stack:
|
||||||
self._global_container_stack.propertyChanged.connect(self._onPropertyChanged)
|
|
||||||
self._extruder_count = self._global_container_stack.getProperty("machine_extruder_count", "value")
|
self._extruder_count = self._global_container_stack.getProperty("machine_extruder_count", "value")
|
||||||
self._onPropertyChanged("wireframe_enabled", "value")
|
|
||||||
self.globalStackChanged.emit()
|
self.globalStackChanged.emit()
|
||||||
else:
|
|
||||||
self._wireprint_warning_message.hide()
|
|
||||||
|
|
||||||
def _onPropertyChanged(self, key: str, property_name: str) -> None:
|
|
||||||
if key == "wireframe_enabled" and property_name == "value":
|
|
||||||
if self._global_container_stack and self._global_container_stack.getProperty("wireframe_enabled", "value"):
|
|
||||||
self._wireprint_warning_message.show()
|
|
||||||
else:
|
|
||||||
self._wireprint_warning_message.hide()
|
|
||||||
|
|
||||||
def _onCurrentLayerNumChanged(self) -> None:
|
def _onCurrentLayerNumChanged(self) -> None:
|
||||||
self.calculateMaxPathsOnLayer(self._current_layer_num)
|
self.calculateMaxPathsOnLayer(self._current_layer_num)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2021 Ultimaker B.V.
|
# Copyright (c) 2023 UltiMaker
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -27,7 +27,7 @@ catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
class SliceInfo(QObject, Extension):
|
class SliceInfo(QObject, Extension):
|
||||||
"""This Extension runs in the background and sends several bits of information to the Ultimaker servers.
|
"""This Extension runs in the background and sends several bits of information to the UltiMaker servers.
|
||||||
|
|
||||||
The data is only sent when the user in question gave permission to do so. All data is anonymous and
|
The data is only sent when the user in question gave permission to do so. All data is anonymous and
|
||||||
no model files are being sent (Just a SHA256 hash of the model).
|
no model files are being sent (Just a SHA256 hash of the model).
|
||||||
|
@ -277,6 +277,26 @@ class SliceInfo(QObject, Extension):
|
||||||
# Send the name of the output device type that is used.
|
# Send the name of the output device type that is used.
|
||||||
data["output_to"] = type(output_device).__name__
|
data["output_to"] = type(output_device).__name__
|
||||||
|
|
||||||
|
# Engine Statistics (Slicing Time, ...)
|
||||||
|
# Call it backend-time, sice we might want to get the actual slice time from the engine itself,
|
||||||
|
# to also identify problems in between the users pressing the button and the engine actually starting
|
||||||
|
# (and the other way around with data that arrives back from the engine).
|
||||||
|
time_setup = 0.0
|
||||||
|
time_backend = 0.0
|
||||||
|
if not print_information.preSliced:
|
||||||
|
backend_info = self._application.getBackend().resetAndReturnLastSliceTimeStats()
|
||||||
|
time_start_process = backend_info["time_start_process"]
|
||||||
|
time_send_message = backend_info["time_send_message"]
|
||||||
|
time_end_slice = backend_info["time_end_slice"]
|
||||||
|
if time_start_process and time_send_message and time_end_slice:
|
||||||
|
time_setup = time_send_message - time_start_process
|
||||||
|
time_backend = time_end_slice - time_send_message
|
||||||
|
data["engine_stats"] = {
|
||||||
|
"is_presliced": int(print_information.preSliced),
|
||||||
|
"time_setup": int(round(time_setup)),
|
||||||
|
"time_backend": int(round(time_backend)),
|
||||||
|
}
|
||||||
|
|
||||||
# Convert data to bytes
|
# Convert data to bytes
|
||||||
binary_data = json.dumps(data).encode("utf-8")
|
binary_data = json.dumps(data).encode("utf-8")
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<!-- Copyright (c) 2023 UltiMaker
|
||||||
|
Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
-->
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<b>Cura Version:</b> 4.8<br/>
|
<b>Cura Version:</b> 4.8<br/>
|
||||||
|
@ -63,11 +67,18 @@
|
||||||
|
|
||||||
<h3>Print Times:</h3>
|
<h3>Print Times:</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Infill: 61200 sec.</li>
|
<li><b>Infill:</b> 61200 sec.</li>
|
||||||
<li>Support: 25480 sec.</li>
|
<li><b>Support:</b> 25480 sec.</li>
|
||||||
<li>Travel: 6224 sec.</li>
|
<li><b>Travel:</b> 6224 sec.</li>
|
||||||
<li>Walls: 10225 sec.</li>
|
<li><b>Walls:</b> 10225 sec.</li>
|
||||||
<li>Total: 103129 sec.</li>
|
<li><b>Total:</b> 103129 sec.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3>Engine Statistics:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><b>Is Pre-Sliced:</b> no</li>
|
||||||
|
<li><b>Pre-Process Time:</b> 7 sec.</li>
|
||||||
|
<li><b>Slicing Time:</b> 69 sec.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "Ultimaker Network Connection",
|
"name": "UltiMaker Network Connection",
|
||||||
"author": "Ultimaker B.V.",
|
"author": "Ultimaker B.V.",
|
||||||
"description": "Manages network connections to Ultimaker networked printers.",
|
"description": "Manages network connections to UltiMaker networked printers.",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"api": 8,
|
"api": 8,
|
||||||
"i18n-catalog": "cura"
|
"i18n-catalog": "cura"
|
||||||
|
|
BIN
plugins/UM3NetworkPrinting/resources/png/Ultimaker S7.png
Normal file
BIN
plugins/UM3NetworkPrinting/resources/png/Ultimaker S7.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 735 KiB |
|
@ -1,71 +0,0 @@
|
||||||
// Copyright (c) 2019 Ultimaker B.V.
|
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
|
||||||
|
|
||||||
import QtQuick 2.2
|
|
||||||
import QtQuick.Controls 2.0
|
|
||||||
import UM 1.5 as UM
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This component comprises a buildplate icon and the buildplate name. It is
|
|
||||||
* used by the MonitorPrinterConfiguration component along with two instances
|
|
||||||
* of MonitorExtruderConfiguration.
|
|
||||||
*
|
|
||||||
* NOTE: For most labels, a fixed height with vertical alignment is used to make
|
|
||||||
* layouts more deterministic (like the fixed-size textboxes used in original
|
|
||||||
* mock-ups). This is also a stand-in for CSS's 'line-height' property. Denoted
|
|
||||||
* with '// FIXED-LINE-HEIGHT:'.
|
|
||||||
*/
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
// The buildplate name
|
|
||||||
property var buildplate: null
|
|
||||||
|
|
||||||
// Height is one 18px label/icon
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
width: childrenRect.width
|
|
||||||
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
height: parent.height
|
|
||||||
spacing: UM.Theme.getSize("slider_handle").width // TODO: Theme! (Should be same as extruder spacing)
|
|
||||||
|
|
||||||
// This wrapper ensures that the buildplate icon is located centered
|
|
||||||
// below an extruder icon.
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
height: parent.height
|
|
||||||
width: 32 * screenScaleFactor // Ensure the icon is centered under the extruder icon (same width)
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
anchors.centerIn: parent
|
|
||||||
height: parent.height
|
|
||||||
width: height
|
|
||||||
color: buildplateIcon.visible > 0 ? "transparent" : UM.Theme.getColor("monitor_skeleton_loading")
|
|
||||||
radius: Math.floor(height / 2)
|
|
||||||
}
|
|
||||||
|
|
||||||
UM.ColorImage
|
|
||||||
{
|
|
||||||
id: buildplateIcon
|
|
||||||
anchors.centerIn: parent
|
|
||||||
color: UM.Theme.getColor("monitor_icon_primary")
|
|
||||||
height: UM.Theme.getSize("medium_button_icon").width
|
|
||||||
source: UM.Theme.getIcon("Buildplate")
|
|
||||||
width: height
|
|
||||||
visible: buildplate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
UM.Label
|
|
||||||
{
|
|
||||||
id: buildplateLabel
|
|
||||||
elide: Text.ElideRight
|
|
||||||
text: buildplate ? buildplate : ""
|
|
||||||
visible: text !== ""
|
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -102,9 +102,6 @@ UM.Dialog
|
||||||
case "print_core_change":
|
case "print_core_change":
|
||||||
text = catalog.i18nc("@label", "Change print core %1 from %2 to %3.").arg(change.index + 1).arg(change.originName).arg(change.targetName)
|
text = catalog.i18nc("@label", "Change print core %1 from %2 to %3.").arg(change.index + 1).arg(change.originName).arg(change.targetName)
|
||||||
break
|
break
|
||||||
case "buildplate_change":
|
|
||||||
text = catalog.i18nc("@label", "Change build plate to %1 (This cannot be overridden).").arg(formatBuildPlateType(change.target_name))
|
|
||||||
break
|
|
||||||
default:
|
default:
|
||||||
text = "unknown"
|
text = "unknown"
|
||||||
}
|
}
|
||||||
|
@ -143,19 +140,4 @@ UM.Dialog
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
function formatBuildPlateType(buildPlateType)
|
|
||||||
{
|
|
||||||
var translationText = ""
|
|
||||||
switch (buildPlateType) {
|
|
||||||
case "glass":
|
|
||||||
translationText = catalog.i18nc("@label", "Glass")
|
|
||||||
break
|
|
||||||
case "aluminum":
|
|
||||||
translationText = catalog.i18nc("@label", "Aluminum")
|
|
||||||
break
|
|
||||||
default:
|
|
||||||
translationText = null
|
|
||||||
}
|
|
||||||
return translationText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import Cura 1.6 as Cura
|
||||||
/**
|
/**
|
||||||
* This component comprises a colored extruder icon, the material name, and the
|
* This component comprises a colored extruder icon, the material name, and the
|
||||||
* print core name. It is used by the MonitorPrinterConfiguration component with
|
* print core name. It is used by the MonitorPrinterConfiguration component with
|
||||||
* a sibling instance as well as a MonitorBuildplateConfiguration instance.
|
* a sibling instance.
|
||||||
*
|
*
|
||||||
* NOTE: For most labels, a fixed height with vertical alignment is used to make
|
* NOTE: For most labels, a fixed height with vertical alignment is used to make
|
||||||
* layouts more deterministic (like the fixed-size textboxes used in original
|
* layouts more deterministic (like the fixed-size textboxes used in original
|
||||||
|
|
|
@ -172,14 +172,6 @@ Item
|
||||||
{
|
{
|
||||||
id: printerConfiguration
|
id: printerConfiguration
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
buildplate: {
|
|
||||||
switch (printJob.assignedPrinter.buildplate) {
|
|
||||||
case "glass":
|
|
||||||
return catalog.i18nc("@label", "Glass");
|
|
||||||
default:
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
configurations: base.printJob ? base.printJob.configuration.extruderConfigurations : null
|
configurations: base.printJob ? base.printJob.configuration.extruderConfigurations : null
|
||||||
height: Math.round(72 * screenScaleFactor) // TODO: Theme!
|
height: Math.round(72 * screenScaleFactor) // TODO: Theme!
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,14 +175,7 @@ Item
|
||||||
{
|
{
|
||||||
id: printerConfiguration
|
id: printerConfiguration
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
buildplate: {
|
|
||||||
switch (printer.buildplate) {
|
|
||||||
case "glass":
|
|
||||||
return catalog.i18nc("@label", "Glass");
|
|
||||||
default:
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
configurations:
|
configurations:
|
||||||
{
|
{
|
||||||
var configs = []
|
var configs = []
|
||||||
|
|
|
@ -7,17 +7,13 @@ import UM 1.3 as UM
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MonitorPrinterConfiguration accepts 2 configuration objects as input and
|
* The MonitorPrinterConfiguration accepts 2 configuration objects as input and
|
||||||
* applies them to a MonitorBuildplateConfiguration instance and two instances
|
* applies them to two instances of MonitorExtruderConfiguration.
|
||||||
* of MonitorExtruderConfiguration. It's used in both the MonitorPrintJobCard
|
* It's used in both the MonitorPrintJobCard component as well as the MonitorPrinterCard component.
|
||||||
* component as well as the MonitorPrinterCard component.
|
|
||||||
*/
|
*/
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
// Extracted buildplate configuration
|
|
||||||
property alias buildplate: buildplateConfig.buildplate
|
|
||||||
|
|
||||||
// Array of extracted extruder configurations
|
// Array of extracted extruder configurations
|
||||||
property var configurations: [null,null]
|
property var configurations: [null,null]
|
||||||
|
|
||||||
|
@ -48,11 +44,4 @@ Item
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MonitorBuildplateConfiguration
|
|
||||||
{
|
|
||||||
id: buildplateConfig
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
buildplate: null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,9 @@ class AbstractCloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def printerSelected(self, unique_id: str):
|
def printerSelected(self, unique_id: str):
|
||||||
|
# The device that it defers the actual write to isn't hooked up correctly. So we should emit the write signal
|
||||||
|
# here.
|
||||||
|
self.writeStarted.emit(self)
|
||||||
self._request_write_callback(unique_id, self._nodes)
|
self._request_write_callback(unique_id, self._nodes)
|
||||||
if self._on_print_dialog:
|
if self._on_print_dialog:
|
||||||
self._on_print_dialog.close()
|
self._on_print_dialog.close()
|
||||||
|
|
|
@ -16,7 +16,7 @@ class LegacyDeviceNoLongerSupportedMessage(Message):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not "
|
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not "
|
||||||
"running Ultimaker Connect. Please update the printer to the "
|
"running UltiMaker Connect. Please update the printer to the "
|
||||||
"latest firmware."),
|
"latest firmware."),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Update your printer"),
|
title = I18N_CATALOG.i18nc("@info:title", "Update your printer"),
|
||||||
lifetime = 10,
|
lifetime = 10,
|
||||||
|
|
|
@ -10,6 +10,7 @@ from PyQt6.QtCore import pyqtSlot, QUrl, pyqtSignal, pyqtProperty, QObject
|
||||||
from PyQt6.QtNetwork import QNetworkReply
|
from PyQt6.QtNetwork import QNetworkReply
|
||||||
|
|
||||||
from UM.FileHandler.FileHandler import FileHandler
|
from UM.FileHandler.FileHandler import FileHandler
|
||||||
|
from UM.Version import Version
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
from UM.Scene.SceneNode import SceneNode
|
from UM.Scene.SceneNode import SceneNode
|
||||||
|
@ -86,7 +87,10 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||||
|
|
||||||
@pyqtSlot(name="openPrinterControlPanel")
|
@pyqtSlot(name="openPrinterControlPanel")
|
||||||
def openPrinterControlPanel(self) -> None:
|
def openPrinterControlPanel(self) -> None:
|
||||||
QDesktopServices.openUrl(QUrl("http://" + self._address + "/printers"))
|
if Version(self.firmwareVersion) >= Version("7.0.2"):
|
||||||
|
QDesktopServices.openUrl(QUrl("http://" + self._address + "/print_jobs"))
|
||||||
|
else:
|
||||||
|
QDesktopServices.openUrl(QUrl("http://" + self._address + "/printers"))
|
||||||
|
|
||||||
@pyqtSlot(str, name="sendJobToTop")
|
@pyqtSlot(str, name="sendJobToTop")
|
||||||
def sendJobToTop(self, print_job_uuid: str) -> None:
|
def sendJobToTop(self, print_job_uuid: str) -> None:
|
||||||
|
|
|
@ -53,7 +53,7 @@ class AutoDetectBaudJob(Job):
|
||||||
try:
|
try:
|
||||||
serial = Serial(str(self._serial_port), baud_rate, timeout = read_timeout, writeTimeout = write_timeout)
|
serial = Serial(str(self._serial_port), baud_rate, timeout = read_timeout, writeTimeout = write_timeout)
|
||||||
except SerialException:
|
except SerialException:
|
||||||
Logger.logException("w", "Unable to create serial")
|
Logger.warning(f"Unable to create serial connection to {serial} with baud rate {baud_rate}")
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# We already have a serial connection, just change the baud rate.
|
# We already have a serial connection, just change the baud rate.
|
||||||
|
|
|
@ -9,6 +9,7 @@ from re import search
|
||||||
|
|
||||||
from PyQt6.QtCore import QObject, pyqtSignal
|
from PyQt6.QtCore import QObject, pyqtSignal
|
||||||
|
|
||||||
|
from UM.Platform import Platform
|
||||||
from UM.Signal import Signal, signalemitter
|
from UM.Signal import Signal, signalemitter
|
||||||
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
@ -83,7 +84,8 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin):
|
||||||
if container_stack.getMetaDataEntry("supports_usb_connection"):
|
if container_stack.getMetaDataEntry("supports_usb_connection"):
|
||||||
machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")]
|
machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")]
|
||||||
if "text/x-gcode" in machine_file_formats:
|
if "text/x-gcode" in machine_file_formats:
|
||||||
port_list = self.getSerialPortList(only_list_usb=True)
|
# We only limit listing usb on windows is a fix for connecting tty/cu printers on MacOS and Linux
|
||||||
|
port_list = self.getSerialPortList(only_list_usb=Platform.isWindows())
|
||||||
self._addRemovePorts(port_list)
|
self._addRemovePorts(port_list)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "Ultimaker machine actions",
|
"name": "UltiMaker machine actions",
|
||||||
"author": "Ultimaker B.V.",
|
"author": "Ultimaker B.V.",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "Provides machine actions for Ultimaker machines (such as bed leveling wizard, selecting upgrades, etc.).",
|
"description": "Provides machine actions for Ultimaker machines (such as bed leveling wizard, selecting upgrades, etc.).",
|
||||||
|
|
|
@ -0,0 +1,372 @@
|
||||||
|
# Copyright (c) 2023 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
import configparser
|
||||||
|
from typing import Tuple, List
|
||||||
|
import io
|
||||||
|
from UM.VersionUpgrade import VersionUpgrade
|
||||||
|
|
||||||
|
_REMOVED_SETTINGS = {
|
||||||
|
"limit_support_retractions",
|
||||||
|
"material_flow_dependent_temperature",
|
||||||
|
}
|
||||||
|
|
||||||
|
_RENAMED_PROFILES = {
|
||||||
|
"um_s3_aa0.25_ABS_Normal_Quality": "um_s3_aa0.25_abs_0.1mm",
|
||||||
|
"um_s3_aa0.25_CPE_Normal_Quality": "um_s3_aa0.25_cpe_0.1mm",
|
||||||
|
"um_s3_aa0.25_Nylon_Normal_Quality": "um_s3_aa0.25_nylon_0.1mm",
|
||||||
|
"um_s3_aa0.25_PC_Normal_Quality": "um_s3_aa0.25_pc_0.1mm",
|
||||||
|
"um_s3_aa0.25_PETG_Normal_Quality": "um_s3_aa0.25_petg_0.1mm",
|
||||||
|
"um_s3_aa0.25_PLA_Normal_Quality": "um_s3_aa0.25_pla_0.1mm",
|
||||||
|
"um_s3_aa0.25_PP_Normal_Quality": "um_s3_aa0.25_pp_0.1mm",
|
||||||
|
"um_s3_aa0.25_TPLA_Normal_Quality": "um_s3_aa0.25_tough-pla_0.1mm",
|
||||||
|
"um_s3_aa0.4_ABS_Draft_Print": "um_s3_aa0.4_abs_0.2mm",
|
||||||
|
"um_s3_aa0.4_ABS_Draft_Print_Quick": "um_s3_aa0.4_abs_0.2mm_quick",
|
||||||
|
"um_s3_aa0.4_ABS_Fast_Print": "um_s3_aa0.4_abs_0.15mm",
|
||||||
|
"um_s3_aa0.4_ABS_Fast_Print_Accurate": "um_s3_aa0.4_abs_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_ABS_Fast_Visual": "um_s3_aa0.4_abs_0.15mm_visual",
|
||||||
|
"um_s3_aa0.4_ABS_High_Quality": "um_s3_aa0.4_abs_0.06mm",
|
||||||
|
"um_s3_aa0.4_ABS_High_Visual": "um_s3_aa0.4_abs_0.06mm_visual",
|
||||||
|
"um_s3_aa0.4_ABS_Normal_Quality": "um_s3_aa0.4_abs_0.1mm",
|
||||||
|
"um_s3_aa0.4_ABS_Normal_Quality_Accurate": "um_s3_aa0.4_abs_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_ABS_Normal_Visual": "um_s3_aa0.4_abs_0.1mm_visual",
|
||||||
|
"um_s3_aa0.4_BAM_Draft_Print": "um_s3_aa0.4_bam_0.2mm",
|
||||||
|
"um_s3_aa0.4_BAM_Fast_Print": "um_s3_aa0.4_bam_0.15mm",
|
||||||
|
"um_s3_aa0.4_BAM_Normal_Quality": "um_s3_aa0.4_bam_0.1mm",
|
||||||
|
"um_s3_aa0.4_BAM_VeryDraft_Print": "um_s3_aa0.4_bam_0.3mm",
|
||||||
|
"um_s3_aa0.4_CPE_Draft_Print": "um_s3_aa0.4_cpe_0.2mm",
|
||||||
|
"um_s3_aa0.4_CPE_Fast_Print": "um_s3_aa0.4_cpe_0.15mm",
|
||||||
|
"um_s3_aa0.4_CPE_Fast_Print_Accurate": "um_s3_aa0.4_cpe_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_CPE_High_Quality": "um_s3_aa0.4_cpe_0.06mm",
|
||||||
|
"um_s3_aa0.4_CPE_Normal_Quality": "um_s3_aa0.4_cpe_0.1mm",
|
||||||
|
"um_s3_aa0.4_CPE_Normal_Quality_Accurate": "um_s3_aa0.4_cpe_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_CPEP_Draft_Print": "um_s3_aa0.4_cpe-plus_0.2mm",
|
||||||
|
"um_s3_aa0.4_CPEP_Fast_Print": "um_s3_aa0.4_cpe-plus_0.15mm",
|
||||||
|
"um_s3_aa0.4_CPEP_Fast_Print_Accurate": "um_s3_aa0.4_cpe-plus_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_CPEP_High_Quality": "um_s3_aa0.4_cpe-plus_0.06mm",
|
||||||
|
"um_s3_aa0.4_CPEP_Normal_Quality": "um_s3_aa0.4_cpe-plus_0.1mm",
|
||||||
|
"um_s3_aa0.4_CPEP_Normal_Quality_Accurate": "um_s3_aa0.4_cpe-plus_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_Nylon_Draft_Print": "um_s3_aa0.4_nylon_0.2mm",
|
||||||
|
"um_s3_aa0.4_Nylon_Fast_Print": "um_s3_aa0.4_nylon_0.15mm",
|
||||||
|
"um_s3_aa0.4_Nylon_Fast_Print_Accurate": "um_s3_aa0.4_nylon_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_Nylon_High_Quality": "um_s3_aa0.4_nylon_0.06mm",
|
||||||
|
"um_s3_aa0.4_Nylon_Normal_Quality": "um_s3_aa0.4_nylon_0.1mm",
|
||||||
|
"um_s3_aa0.4_Nylon_Normal_Quality_Accurate": "um_s3_aa0.4_nylon_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_PC_Draft_Print": "um_s3_aa0.4_pc_0.2mm",
|
||||||
|
"um_s3_aa0.4_PC_Fast_Print": "um_s3_aa0.4_pc_0.15mm",
|
||||||
|
"um_s3_aa0.4_PC_Fast_Print_Accurate": "um_s3_aa0.4_pc_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_PC_High_Quality": "um_s3_aa0.4_pc_0.06mm",
|
||||||
|
"um_s3_aa0.4_PC_Normal_Quality": "um_s3_aa0.4_pc_0.1mm",
|
||||||
|
"um_s3_aa0.4_PC_Normal_Quality_Accurate": "um_s3_aa0.4_pc_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_PETG_Draft_Print": "um_s3_aa0.4_petg_0.2mm",
|
||||||
|
"um_s3_aa0.4_PETG_Fast_Print": "um_s3_aa0.4_petg_0.15mm",
|
||||||
|
"um_s3_aa0.4_PETG_Fast_Print_Accurate": "um_s3_aa0.4_petg_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_PETG_High_Quality": "um_s3_aa0.4_petg_0.06mm",
|
||||||
|
"um_s3_aa0.4_PETG_Normal_Quality": "um_s3_aa0.4_petg_0.1mm",
|
||||||
|
"um_s3_aa0.4_PETG_Normal_Quality_Accurate": "um_s3_aa0.4_petg_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_PLA_Draft_Print": "um_s3_aa0.4_pla_0.2mm",
|
||||||
|
"um_s3_aa0.4_PLA_Draft_Print_Quick": "um_s3_aa0.4_pla_0.2mm_quick",
|
||||||
|
"um_s3_aa0.4_PLA_Fast_Print": "um_s3_aa0.4_pla_0.15mm",
|
||||||
|
"um_s3_aa0.4_PLA_Fast_Print_Accurate": "um_s3_aa0.4_pla_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_PLA_Fast_Visual": "um_s3_aa0.4_pla_0.15mm_visual",
|
||||||
|
"um_s3_aa0.4_PLA_High_Quality": "um_s3_aa0.4_pla_0.06mm",
|
||||||
|
"um_s3_aa0.4_PLA_High_Visual": "um_s3_aa0.4_pla_0.06mm_visual",
|
||||||
|
"um_s3_aa0.4_PLA_Normal_Quality": "um_s3_aa0.4_pla_0.1mm",
|
||||||
|
"um_s3_aa0.4_PLA_Normal_Quality_Accurate": "um_s3_aa0.4_pla_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_PLA_Normal_Visual": "um_s3_aa0.4_pla_0.1mm_visual",
|
||||||
|
"um_s3_aa0.4_PLA_VeryDraft_Print": "um_s3_aa0.4_pla_0.3mm",
|
||||||
|
"um_s3_aa0.4_PLA_VeryDraft_Print_Quick": "um_s3_aa0.4_pla_0.3mm_quick",
|
||||||
|
"um_s3_aa0.4_PP_Draft_Print": "um_s3_aa0.4_pp_0.2mm",
|
||||||
|
"um_s3_aa0.4_PP_Fast_Print": "um_s3_aa0.4_pp_0.15mm",
|
||||||
|
"um_s3_aa0.4_PP_Normal_Quality": "um_s3_aa0.4_pp_0.1mm",
|
||||||
|
"um_s3_aa0.4_TPLA_Draft_Print": "um_s3_aa0.4_tough-pla_0.2mm",
|
||||||
|
"um_s3_aa0.4_TPLA_Draft_Print_Quick": "um_s3_aa0.4_tough-pla_0.2mm_quick",
|
||||||
|
"um_s3_aa0.4_TPLA_Fast_Print": "um_s3_aa0.4_tough-pla_0.15mm",
|
||||||
|
"um_s3_aa0.4_TPLA_Fast_Print_Accurate": "um_s3_aa0.4_tough-pla_0.15mm_engineering",
|
||||||
|
"um_s3_aa0.4_TPLA_Fast_Visual": "um_s3_aa0.4_tough-pla_0.15mm_visual",
|
||||||
|
"um_s3_aa0.4_TPLA_High_Quality": "um_s3_aa0.4_tough-pla_0.06mm",
|
||||||
|
"um_s3_aa0.4_TPLA_High_Visual": "um_s3_aa0.4_tough-pla_0.06mm_visual",
|
||||||
|
"um_s3_aa0.4_TPLA_Normal_Quality": "um_s3_aa0.4_tough-pla_0.1mm",
|
||||||
|
"um_s3_aa0.4_TPLA_Normal_Quality_Accurate": "um_s3_aa0.4_tough-pla_0.1mm_engineering",
|
||||||
|
"um_s3_aa0.4_TPLA_Normal_Visual": "um_s3_aa0.4_tough-pla_0.1mm_visual",
|
||||||
|
"um_s3_aa0.4_TPLA_VeryDraft_Print": "um_s3_aa0.4_tough-pla_0.3mm",
|
||||||
|
"um_s3_aa0.4_TPLA_VeryDraft_Print_Quick": "um_s3_aa0.4_tough-pla_0.3mm_quick",
|
||||||
|
"um_s3_aa0.4_TPU_Draft_Print": "um_s3_aa0.4_tpu_0.2mm",
|
||||||
|
"um_s3_aa0.4_TPU_Fast_Print": "um_s3_aa0.4_tpu_0.15mm",
|
||||||
|
"um_s3_aa0.4_TPU_Normal_Quality": "um_s3_aa0.4_tpu_0.1mm",
|
||||||
|
"um_s3_aa0.8_ABS_Draft_Print": "um_s3_aa0.8_abs_0.2mm",
|
||||||
|
"um_s3_aa0.8_ABS_Superdraft_Print": "um_s3_aa0.8_abs_0.4mm",
|
||||||
|
"um_s3_aa0.8_ABS_VeryDraft_Print": "um_s3_aa0.8_abs_0.3mm",
|
||||||
|
"um_s3_aa0.8_CPE_Draft_Print": "um_s3_aa0.8_cpe_0.2mm",
|
||||||
|
"um_s3_aa0.8_CPE_Superdraft_Print": "um_s3_aa0.8_cpe_0.4mm",
|
||||||
|
"um_s3_aa0.8_CPE_VeryDraft_Print": "um_s3_aa0.8_cpe_0.3mm",
|
||||||
|
"um_s3_aa0.8_CPEP_Fast_Print": "um_s3_aa0.8_cpe-plus_0.2mm",
|
||||||
|
"um_s3_aa0.8_CPEP_Superdraft_Print": "um_s3_aa0.8_cpe-plus_0.4mm",
|
||||||
|
"um_s3_aa0.8_CPEP_VeryDraft_Print": "um_s3_aa0.8_cpe-plus_0.3mm",
|
||||||
|
"um_s3_aa0.8_Nylon_Draft_Print": "um_s3_aa0.8_nylon_0.2mm",
|
||||||
|
"um_s3_aa0.8_Nylon_Superdraft_Print": "um_s3_aa0.8_nylon_0.4mm",
|
||||||
|
"um_s3_aa0.8_Nylon_VeryDraft_Print": "um_s3_aa0.8_nylon_0.3mm",
|
||||||
|
"um_s3_aa0.8_PC_Fast_Print": "um_s3_aa0.8_pc_0.2mm",
|
||||||
|
"um_s3_aa0.8_PC_Superdraft_Print": "um_s3_aa0.8_pc_0.4mm",
|
||||||
|
"um_s3_aa0.8_PC_VeryDraft_Print": "um_s3_aa0.8_pc_0.3mm",
|
||||||
|
"um_s3_aa0.8_PETG_Draft_Print": "um_s3_aa0.8_petg_0.2mm",
|
||||||
|
"um_s3_aa0.8_PETG_Superdraft_Print": "um_s3_aa0.8_petg_0.4mm",
|
||||||
|
"um_s3_aa0.8_PETG_VeryDraft_Print": "um_s3_aa0.8_petg_0.3mm",
|
||||||
|
"um_s3_aa0.8_PLA_Draft_Print": "um_s3_aa0.8_pla_0.2mm",
|
||||||
|
"um_s3_aa0.8_PLA_Superdraft_Print": "um_s3_aa0.8_pla_0.4mm",
|
||||||
|
"um_s3_aa0.8_PLA_VeryDraft_Print": "um_s3_aa0.8_pla_0.3mm",
|
||||||
|
"um_s3_aa0.8_PP_Draft_Print": "um_s3_aa0.8_pp_0.2mm",
|
||||||
|
"um_s3_aa0.8_PP_Superdraft_Print": "um_s3_aa0.8_pp_0.4mm",
|
||||||
|
"um_s3_aa0.8_PP_VeryDraft_Print": "um_s3_aa0.8_pp_0.3mm",
|
||||||
|
"um_s3_aa0.8_TPLA_Draft_Print": "um_s3_aa0.8_tough-pla_0.2mm",
|
||||||
|
"um_s3_aa0.8_TPLA_Superdraft_Print": "um_s3_aa0.8_tough-pla_0.4mm",
|
||||||
|
"um_s3_aa0.8_TPLA_VeryDraft_Print": "um_s3_aa0.8_tough-pla_0.3mm",
|
||||||
|
"um_s3_aa0.8_TPU_Draft_Print": "um_s3_aa0.8_tpu_0.2mm",
|
||||||
|
"um_s3_aa0.8_TPU_Superdraft_Print": "um_s3_aa0.8_tpu_0.4mm",
|
||||||
|
"um_s3_aa0.8_TPU_VeryDraft_Print": "um_s3_aa0.8_tpu_0.3mm",
|
||||||
|
"um_s3_bb0.4_PVA_Draft_Print": "um_s3_bb0.4_pva_0.2mm",
|
||||||
|
"um_s3_bb0.4_PVA_Fast_Print": "um_s3_bb0.4_pva_0.15mm",
|
||||||
|
"um_s3_bb0.4_PVA_High_Quality": "um_s3_bb0.4_pva_0.06mm",
|
||||||
|
"um_s3_bb0.4_PVA_Normal_Quality": "um_s3_bb0.4_pva_0.1mm",
|
||||||
|
"um_s3_bb0.4_PVA_VeryDraft_Print": "um_s3_bb0.4_pva_0.3mm",
|
||||||
|
"um_s3_bb0.8_PVA_Draft_Print": "um_s3_bb0.8_pva_0.2mm",
|
||||||
|
"um_s3_bb0.8_PVA_Superdraft_Print": "um_s3_bb0.8_pva_0.4mm",
|
||||||
|
"um_s3_bb0.8_PVA_VeryDraft_Print": "um_s3_bb0.8_pva_0.3mm",
|
||||||
|
"um_s3_cc0.4_CFFCPE_Draft_Print": "um_s3_cc0.4_cffcpe_0.2mm",
|
||||||
|
"um_s3_cc0.4_CFFCPE_Fast_Print": "um_s3_cc0.4_cffcpe_0.15mm",
|
||||||
|
"um_s3_cc0.4_CFFPA_Draft_Print": "um_s3_cc0.4_cffpa_0.2mm",
|
||||||
|
"um_s3_cc0.4_CFFPA_Fast_Print": "um_s3_cc0.4_cffpa_0.15mm",
|
||||||
|
"um_s3_cc0.4_GFFCPE_Draft_Print": "um_s3_cc0.4_gffcpe_0.2mm",
|
||||||
|
"um_s3_cc0.4_GFFCPE_Fast_Print": "um_s3_cc0.4_gffcpe_0.15mm",
|
||||||
|
"um_s3_cc0.4_GFFPA_Draft_Print": "um_s3_cc0.4_gffpa_0.2mm",
|
||||||
|
"um_s3_cc0.4_GFFPA_Fast_Print": "um_s3_cc0.4_gffpa_0.15mm",
|
||||||
|
"um_s3_cc0.4_PLA_Draft_Print": "um_s3_cc0.4_pla_0.2mm",
|
||||||
|
"um_s3_cc0.4_PLA_Fast_Print": "um_s3_cc0.4_pla_0.15mm",
|
||||||
|
"um_s3_cc0.6_CFFCPE_Draft_Print": "um_s3_cc0.6_cffcpe_0.2mm",
|
||||||
|
"um_s3_cc0.6_CFFPA_Draft_Print": "um_s3_cc0.6_cffpa_0.2mm",
|
||||||
|
"um_s3_cc0.6_GFFCPE_Draft_Print": "um_s3_cc0.6_gffcpe_0.2mm",
|
||||||
|
"um_s3_cc0.6_GFFPA_Draft_Print": "um_s3_cc0.6_gffpa_0.2mm",
|
||||||
|
"um_s3_cc0.6_PLA_Draft_Print": "um_s3_cc0.6_pla_0.2mm",
|
||||||
|
"um_s3_cc0.6_PLA_Fast_Print": "um_s3_cc0.6_pla_0.15mm",
|
||||||
|
"um_s5_aa0.25_ABS_Normal_Quality": "um_s5_aa0.25_abs_0.1mm",
|
||||||
|
"um_s5_aa0.25_CPE_Normal_Quality": "um_s5_aa0.25_cpe_0.1mm",
|
||||||
|
"um_s5_aa0.25_Nylon_Normal_Quality": "um_s5_aa0.25_nylon_0.1mm",
|
||||||
|
"um_s5_aa0.25_PC_Normal_Quality": "um_s5_aa0.25_pc_0.1mm",
|
||||||
|
"um_s5_aa0.25_PETG_Normal_Quality": "um_s5_aa0.25_petg_0.1mm",
|
||||||
|
"um_s5_aa0.25_PLA_Normal_Quality": "um_s5_aa0.25_pla_0.1mm",
|
||||||
|
"um_s5_aa0.25_PP_Normal_Quality": "um_s5_aa0.25_pp_0.1mm",
|
||||||
|
"um_s5_aa0.25_TPLA_Normal_Quality": "um_s5_aa0.25_tough-pla_0.1mm",
|
||||||
|
"um_s5_aa0.4_ABS_Draft_Print": "um_s5_aa0.4_abs_0.2mm",
|
||||||
|
"um_s5_aa0.4_ABS_Draft_Print_Quick": "um_s5_aa0.4_abs_0.2mm_quick",
|
||||||
|
"um_s5_aa0.4_ABS_Fast_Print": "um_s5_aa0.4_abs_0.15mm",
|
||||||
|
"um_s5_aa0.4_ABS_Fast_Print_Accurate": "um_s5_aa0.4_abs_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_ABS_Fast_Visual": "um_s5_aa0.4_abs_0.15mm_visual",
|
||||||
|
"um_s5_aa0.4_ABS_High_Quality": "um_s5_aa0.4_abs_0.06mm",
|
||||||
|
"um_s5_aa0.4_ABS_High_Visual": "um_s5_aa0.4_abs_0.06mm_visual",
|
||||||
|
"um_s5_aa0.4_ABS_Normal_Quality": "um_s5_aa0.4_abs_0.1mm",
|
||||||
|
"um_s5_aa0.4_ABS_Normal_Quality_Accurate": "um_s5_aa0.4_abs_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_ABS_Normal_Visual": "um_s5_aa0.4_abs_0.1mm_visual",
|
||||||
|
"um_s5_aa0.4_BAM_Draft_Print": "um_s5_aa0.4_bam_0.2mm",
|
||||||
|
"um_s5_aa0.4_BAM_Fast_Print": "um_s5_aa0.4_bam_0.15mm",
|
||||||
|
"um_s5_aa0.4_BAM_Normal_Quality": "um_s5_aa0.4_bam_0.1mm",
|
||||||
|
"um_s5_aa0.4_BAM_VeryDraft_Print": "um_s5_aa0.4_bam_0.3mm",
|
||||||
|
"um_s5_aa0.4_CPE_Draft_Print": "um_s5_aa0.4_cpe_0.2mm",
|
||||||
|
"um_s5_aa0.4_CPE_Fast_Print": "um_s5_aa0.4_cpe_0.15mm",
|
||||||
|
"um_s5_aa0.4_CPE_Fast_Print_Accurate": "um_s5_aa0.4_cpe_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_CPE_High_Quality": "um_s5_aa0.4_cpe_0.06mm",
|
||||||
|
"um_s5_aa0.4_CPE_Normal_Quality": "um_s5_aa0.4_cpe_0.1mm",
|
||||||
|
"um_s5_aa0.4_CPE_Normal_Quality_Accurate": "um_s5_aa0.4_cpe_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_CPEP_Draft_Print": "um_s5_aa0.4_cpe-plus_0.2mm",
|
||||||
|
"um_s5_aa0.4_CPEP_Fast_Print": "um_s5_aa0.4_cpe-plus_0.15mm",
|
||||||
|
"um_s5_aa0.4_CPEP_Fast_Print_Accurate": "um_s5_aa0.4_cpe-plus_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_CPEP_High_Quality": "um_s5_aa0.4_cpe-plus_0.06mm",
|
||||||
|
"um_s5_aa0.4_CPEP_Normal_Quality": "um_s5_aa0.4_cpe-plus_0.1mm",
|
||||||
|
"um_s5_aa0.4_CPEP_Normal_Quality_Accurate": "um_s5_aa0.4_cpe-plus_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_Nylon_Draft_Print": "um_s5_aa0.4_nylon_0.2mm",
|
||||||
|
"um_s5_aa0.4_Nylon_Fast_Print": "um_s5_aa0.4_nylon_0.15mm",
|
||||||
|
"um_s5_aa0.4_Nylon_Fast_Print_Accurate": "um_s5_aa0.4_nylon_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_Nylon_High_Quality": "um_s5_aa0.4_nylon_0.06mm",
|
||||||
|
"um_s5_aa0.4_Nylon_Normal_Quality": "um_s5_aa0.4_nylon_0.1mm",
|
||||||
|
"um_s5_aa0.4_Nylon_Normal_Quality_Accurate": "um_s5_aa0.4_nylon_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_PC_Draft_Print": "um_s5_aa0.4_pc_0.2mm",
|
||||||
|
"um_s5_aa0.4_PC_Fast_Print": "um_s5_aa0.4_pc_0.15mm",
|
||||||
|
"um_s5_aa0.4_PC_Fast_Print_Accurate": "um_s5_aa0.4_pc_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_PC_High_Quality": "um_s5_aa0.4_pc_0.06mm",
|
||||||
|
"um_s5_aa0.4_PC_Normal_Quality": "um_s5_aa0.4_pc_0.1mm",
|
||||||
|
"um_s5_aa0.4_PC_Normal_Quality_Accurate": "um_s5_aa0.4_pc_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_PETG_Draft_Print": "um_s5_aa0.4_petg_0.2mm",
|
||||||
|
"um_s5_aa0.4_PETG_Fast_Print": "um_s5_aa0.4_petg_0.15mm",
|
||||||
|
"um_s5_aa0.4_PETG_Fast_Print_Accurate": "um_s5_aa0.4_petg_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_PETG_High_Quality": "um_s5_aa0.4_petg_0.06mm",
|
||||||
|
"um_s5_aa0.4_PETG_Normal_Quality": "um_s5_aa0.4_petg_0.1mm",
|
||||||
|
"um_s5_aa0.4_PETG_Normal_Quality_Accurate": "um_s5_aa0.4_petg_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_PLA_Draft_Print": "um_s5_aa0.4_pla_0.2mm",
|
||||||
|
"um_s5_aa0.4_PLA_Draft_Print_Quick": "um_s5_aa0.4_pla_0.2mm_quick",
|
||||||
|
"um_s5_aa0.4_PLA_Fast_Print": "um_s5_aa0.4_pla_0.15mm",
|
||||||
|
"um_s5_aa0.4_PLA_Fast_Print_Accurate": "um_s5_aa0.4_pla_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_PLA_Fast_Visual": "um_s5_aa0.4_pla_0.15mm_visual",
|
||||||
|
"um_s5_aa0.4_PLA_High_Quality": "um_s5_aa0.4_pla_0.06mm",
|
||||||
|
"um_s5_aa0.4_PLA_High_Visual": "um_s5_aa0.4_pla_0.06mm_visual",
|
||||||
|
"um_s5_aa0.4_PLA_Normal_Quality": "um_s5_aa0.4_pla_0.1mm",
|
||||||
|
"um_s5_aa0.4_PLA_Normal_Quality_Accurate": "um_s5_aa0.4_pla_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_PLA_Normal_Visual": "um_s5_aa0.4_pla_0.1mm_visual",
|
||||||
|
"um_s5_aa0.4_PLA_VeryDraft_Print": "um_s5_aa0.4_pla_0.3mm",
|
||||||
|
"um_s5_aa0.4_PLA_VeryDraft_Print_Quick": "um_s5_aa0.4_pla_0.3mm_quick",
|
||||||
|
"um_s5_aa0.4_PP_Draft_Print": "um_s5_aa0.4_pp_0.2mm",
|
||||||
|
"um_s5_aa0.4_PP_Fast_Print": "um_s5_aa0.4_pp_0.15mm",
|
||||||
|
"um_s5_aa0.4_PP_Normal_Quality": "um_s5_aa0.4_pp_0.1mm",
|
||||||
|
"um_s5_aa0.4_TPLA_Draft_Print": "um_s5_aa0.4_tough-pla_0.2mm",
|
||||||
|
"um_s5_aa0.4_TPLA_Draft_Print_Quick": "um_s5_aa0.4_tough-pla_0.2mm_quick",
|
||||||
|
"um_s5_aa0.4_TPLA_Fast_Print": "um_s5_aa0.4_tough-pla_0.15mm",
|
||||||
|
"um_s5_aa0.4_TPLA_Fast_Print_Accurate": "um_s5_aa0.4_tough-pla_0.15mm_engineering",
|
||||||
|
"um_s5_aa0.4_TPLA_Fast_Visual": "um_s5_aa0.4_tough-pla_0.15mm_visual",
|
||||||
|
"um_s5_aa0.4_TPLA_High_Quality": "um_s5_aa0.4_tough-pla_0.06mm",
|
||||||
|
"um_s5_aa0.4_TPLA_High_Visual": "um_s5_aa0.4_tough-pla_0.06mm_visual",
|
||||||
|
"um_s5_aa0.4_TPLA_Normal_Quality": "um_s5_aa0.4_tough-pla_0.1mm",
|
||||||
|
"um_s5_aa0.4_TPLA_Normal_Quality_Accurate": "um_s5_aa0.4_tough-pla_0.1mm_engineering",
|
||||||
|
"um_s5_aa0.4_TPLA_Normal_Visual": "um_s5_aa0.4_tough-pla_0.1mm_visual",
|
||||||
|
"um_s5_aa0.4_TPLA_VeryDraft_Print": "um_s5_aa0.4_tough-pla_0.3mm",
|
||||||
|
"um_s5_aa0.4_TPLA_VeryDraft_Print_Quick": "um_s5_aa0.4_tough-pla_0.3mm_quick",
|
||||||
|
"um_s5_aa0.4_TPU_Draft_Print": "um_s5_aa0.4_tpu_0.2mm",
|
||||||
|
"um_s5_aa0.4_TPU_Fast_Print": "um_s5_aa0.4_tpu_0.15mm",
|
||||||
|
"um_s5_aa0.4_TPU_Normal_Quality": "um_s5_aa0.4_tpu_0.1mm",
|
||||||
|
"um_s5_aa0.8_ABS_Draft_Print": "um_s5_aa0.8_abs_0.2mm",
|
||||||
|
"um_s5_aa0.8_ABS_Superdraft_Print": "um_s5_aa0.8_abs_0.4mm",
|
||||||
|
"um_s5_aa0.8_ABS_VeryDraft_Print": "um_s5_aa0.8_abs_0.3mm",
|
||||||
|
"um_s5_aa0.8_CPE_Draft_Print": "um_s5_aa0.8_cpe_0.2mm",
|
||||||
|
"um_s5_aa0.8_CPE_Superdraft_Print": "um_s5_aa0.8_cpe_0.4mm",
|
||||||
|
"um_s5_aa0.8_CPE_VeryDraft_Print": "um_s5_aa0.8_cpe_0.3mm",
|
||||||
|
"um_s5_aa0.8_CPEP_Fast_Print": "um_s5_aa0.8_cpe-plus_0.2mm",
|
||||||
|
"um_s5_aa0.8_CPEP_Superdraft_Print": "um_s5_aa0.8_cpe-plus_0.4mm",
|
||||||
|
"um_s5_aa0.8_CPEP_VeryDraft_Print": "um_s5_aa0.8_cpe-plus_0.3mm",
|
||||||
|
"um_s5_aa0.8_Nylon_Draft_Print": "um_s5_aa0.8_nylon_0.2mm",
|
||||||
|
"um_s5_aa0.8_Nylon_Superdraft_Print": "um_s5_aa0.8_nylon_0.4mm",
|
||||||
|
"um_s5_aa0.8_Nylon_VeryDraft_Print": "um_s5_aa0.8_nylon_0.3mm",
|
||||||
|
"um_s5_aa0.8_PC_Fast_Print": "um_s5_aa0.8_pc_0.2mm",
|
||||||
|
"um_s5_aa0.8_PC_Superdraft_Print": "um_s5_aa0.8_pc_0.4mm",
|
||||||
|
"um_s5_aa0.8_PC_VeryDraft_Print": "um_s5_aa0.8_pc_0.3mm",
|
||||||
|
"um_s5_aa0.8_PETG_Draft_Print": "um_s5_aa0.8_petg_0.2mm",
|
||||||
|
"um_s5_aa0.8_PETG_Superdraft_Print": "um_s5_aa0.8_petg_0.4mm",
|
||||||
|
"um_s5_aa0.8_PETG_VeryDraft_Print": "um_s5_aa0.8_petg_0.3mm",
|
||||||
|
"um_s5_aa0.8_PLA_Draft_Print": "um_s5_aa0.8_pla_0.2mm",
|
||||||
|
"um_s5_aa0.8_PLA_Superdraft_Print": "um_s5_aa0.8_pla_0.4mm",
|
||||||
|
"um_s5_aa0.8_PLA_VeryDraft_Print": "um_s5_aa0.8_pla_0.3mm",
|
||||||
|
"um_s5_aa0.8_PP_Draft_Print": "um_s5_aa0.8_pp_0.2mm",
|
||||||
|
"um_s5_aa0.8_PP_Superdraft_Print": "um_s5_aa0.8_pp_0.4mm",
|
||||||
|
"um_s5_aa0.8_PP_VeryDraft_Print": "um_s5_aa0.8_pp_0.3mm",
|
||||||
|
"um_s5_aa0.8_TPLA_Draft_Print": "um_s5_aa0.8_tough-pla_0.2mm",
|
||||||
|
"um_s5_aa0.8_TPLA_Superdraft_Print": "um_s5_aa0.8_tough-pla_0.4mm",
|
||||||
|
"um_s5_aa0.8_TPLA_VeryDraft_Print": "um_s5_aa0.8_tough-pla_0.3mm",
|
||||||
|
"um_s5_aa0.8_TPU_Draft_Print": "um_s5_aa0.8_tpu_0.2mm",
|
||||||
|
"um_s5_aa0.8_TPU_Superdraft_Print": "um_s5_aa0.8_tpu_0.4mm",
|
||||||
|
"um_s5_aa0.8_TPU_VeryDraft_Print": "um_s5_aa0.8_tpu_0.3mm",
|
||||||
|
"um_s5_bb0.4_PVA_Draft_Print": "um_s5_bb0.4_pva_0.2mm",
|
||||||
|
"um_s5_bb0.4_PVA_Fast_Print": "um_s5_bb0.4_pva_0.15mm",
|
||||||
|
"um_s5_bb0.4_PVA_High_Quality": "um_s5_bb0.4_pva_0.06mm",
|
||||||
|
"um_s5_bb0.4_PVA_Normal_Quality": "um_s5_bb0.4_pva_0.1mm",
|
||||||
|
"um_s5_bb0.4_PVA_VeryDraft_Print": "um_s5_bb0.4_pva_0.3mm",
|
||||||
|
"um_s5_bb0.8_PVA_Draft_Print": "um_s5_bb0.8_pva_0.2mm",
|
||||||
|
"um_s5_bb0.8_PVA_Superdraft_Print": "um_s5_bb0.8_pva_0.4mm",
|
||||||
|
"um_s5_bb0.8_PVA_VeryDraft_Print": "um_s5_bb0.8_pva_0.3mm",
|
||||||
|
"um_s5_cc0.4_CFFCPE_Draft_Print": "um_s5_cc0.4_cffcpe_0.2mm",
|
||||||
|
"um_s5_cc0.4_CFFCPE_Fast_Print": "um_s5_cc0.4_cffcpe_0.15mm",
|
||||||
|
"um_s5_cc0.4_CFFPA_Draft_Print": "um_s5_cc0.4_cffpa_0.2mm",
|
||||||
|
"um_s5_cc0.4_CFFPA_Fast_Print": "um_s5_cc0.4_cffpa_0.15mm",
|
||||||
|
"um_s5_cc0.4_GFFCPE_Draft_Print": "um_s5_cc0.4_gffcpe_0.2mm",
|
||||||
|
"um_s5_cc0.4_GFFCPE_Fast_Print": "um_s5_cc0.4_gffcpe_0.15mm",
|
||||||
|
"um_s5_cc0.4_GFFPA_Draft_Print": "um_s5_cc0.4_gffpa_0.2mm",
|
||||||
|
"um_s5_cc0.4_GFFPA_Fast_Print": "um_s5_cc0.4_gffpa_0.15mm",
|
||||||
|
"um_s5_cc0.4_PLA_Draft_Print": "um_s5_cc0.4_pla_0.2mm",
|
||||||
|
"um_s5_cc0.4_PLA_Fast_Print": "um_s5_cc0.4_pla_0.15mm",
|
||||||
|
"um_s5_cc0.6_CFFCPE_Draft_Print": "um_s5_cc0.6_cffcpe_0.2mm",
|
||||||
|
"um_s5_cc0.6_CFFPA_Draft_Print": "um_s5_cc0.6_cffpa_0.2mm",
|
||||||
|
"um_s5_cc0.6_GFFCPE_Draft_Print": "um_s5_cc0.6_gffcpe_0.2mm",
|
||||||
|
"um_s5_cc0.6_GFFPA_Draft_Print": "um_s5_cc0.6_gffpa_0.2mm",
|
||||||
|
"um_s5_cc0.6_PLA_Draft_Print": "um_s5_cc0.6_pla_0.2mm",
|
||||||
|
"um_s5_cc0.6_PLA_Fast_Print": "um_s5_cc0.6_pla_0.15mm"
|
||||||
|
}
|
||||||
|
|
||||||
|
class VersionUpgrade52to53(VersionUpgrade):
|
||||||
|
def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades preferences to remove from the visibility list the settings that were removed in this version.
|
||||||
|
It also changes the preferences to have the new version number.
|
||||||
|
|
||||||
|
This removes any settings that were removed in the new Cura version.
|
||||||
|
:param serialized: The original contents of the preferences file.
|
||||||
|
:param filename: The file name of the preferences file.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None)
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
parser["metadata"]["setting_version"] = "21"
|
||||||
|
|
||||||
|
# Remove deleted settings from the visible settings list.
|
||||||
|
if "general" in parser and "visible_settings" in parser["general"]:
|
||||||
|
visible_settings = set(parser["general"]["visible_settings"].split(";"))
|
||||||
|
for removed in _REMOVED_SETTINGS:
|
||||||
|
if removed in visible_settings:
|
||||||
|
visible_settings.remove(removed)
|
||||||
|
|
||||||
|
parser["general"]["visible_settings"] = ";".join(visible_settings)
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
||||||
|
|
||||||
|
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades instance containers to remove the settings that were removed in this version.
|
||||||
|
It also changes the instance containers to have the new version number.
|
||||||
|
|
||||||
|
This removes any settings that were removed in the new Cura version and updates settings that need to be updated
|
||||||
|
with a new value.
|
||||||
|
|
||||||
|
:param serialized: The original contents of the instance container.
|
||||||
|
:param filename: The original file name of the instance container.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None, comment_prefixes = ())
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
parser["metadata"]["setting_version"] = "21"
|
||||||
|
|
||||||
|
if "values" in parser:
|
||||||
|
# Remove deleted settings from the instance containers.
|
||||||
|
for removed in _REMOVED_SETTINGS:
|
||||||
|
if removed in parser["values"]:
|
||||||
|
del parser["values"][removed]
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
||||||
|
|
||||||
|
def upgradeStack(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades stacks to have the new version number.
|
||||||
|
|
||||||
|
:param serialized: The original contents of the stack.
|
||||||
|
:param filename: The original file name of the stack.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None)
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
if "metadata" not in parser:
|
||||||
|
parser["metadata"] = {}
|
||||||
|
|
||||||
|
parser["metadata"]["setting_version"] = "21"
|
||||||
|
|
||||||
|
for container in parser['containers']:
|
||||||
|
parser['containers'][container] = _RENAMED_PROFILES.get(parser['containers'][container], parser['containers'][container])
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
61
plugins/VersionUpgrade/VersionUpgrade52to53/__init__.py
Normal file
61
plugins/VersionUpgrade/VersionUpgrade52to53/__init__.py
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
# Copyright (c) 2023 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
from typing import Any, Dict, TYPE_CHECKING
|
||||||
|
|
||||||
|
from . import VersionUpgrade52to53
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from UM.Application import Application
|
||||||
|
|
||||||
|
upgrade = VersionUpgrade52to53.VersionUpgrade52to53()
|
||||||
|
|
||||||
|
|
||||||
|
def getMetaData() -> Dict[str, Any]:
|
||||||
|
return {
|
||||||
|
"version_upgrade": {
|
||||||
|
# From To Upgrade function
|
||||||
|
("preferences", 7000020): ("preferences", 7000021, upgrade.upgradePreferences),
|
||||||
|
("machine_stack", 5000020): ("machine_stack", 5000021, upgrade.upgradeStack),
|
||||||
|
("extruder_train", 5000020): ("extruder_train", 5000021, upgrade.upgradeStack),
|
||||||
|
("definition_changes", 4000020): ("definition_changes", 4000021, upgrade.upgradeInstanceContainer),
|
||||||
|
("quality_changes", 4000020): ("quality_changes", 4000021, upgrade.upgradeInstanceContainer),
|
||||||
|
("quality", 4000020): ("quality", 4000021, upgrade.upgradeInstanceContainer),
|
||||||
|
("user", 4000020): ("user", 4000021, upgrade.upgradeInstanceContainer),
|
||||||
|
("intent", 4000020): ("intent", 4000021, upgrade.upgradeInstanceContainer),
|
||||||
|
},
|
||||||
|
"sources": {
|
||||||
|
"preferences": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"."}
|
||||||
|
},
|
||||||
|
"machine_stack": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./machine_instances"}
|
||||||
|
},
|
||||||
|
"extruder_train": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./extruders"}
|
||||||
|
},
|
||||||
|
"definition_changes": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./definition_changes"}
|
||||||
|
},
|
||||||
|
"quality_changes": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./quality_changes"}
|
||||||
|
},
|
||||||
|
"quality": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./quality"}
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./user"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def register(app: "Application") -> Dict[str, Any]:
|
||||||
|
return {"version_upgrade": upgrade}
|
8
plugins/VersionUpgrade/VersionUpgrade52to53/plugin.json
Normal file
8
plugins/VersionUpgrade/VersionUpgrade52to53/plugin.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "Version Upgrade 5.2 to 5.3",
|
||||||
|
"author": "UltiMaker",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Upgrades configurations from Cura 5.2 to Cura 5.3.",
|
||||||
|
"api": 8,
|
||||||
|
"i18n-catalog": "cura"
|
||||||
|
}
|
|
@ -0,0 +1,160 @@
|
||||||
|
# Copyright (c) 2023 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
import configparser
|
||||||
|
from typing import Tuple, List
|
||||||
|
import io
|
||||||
|
from UM.VersionUpgrade import VersionUpgrade
|
||||||
|
|
||||||
|
_REMOVED_SETTINGS = {
|
||||||
|
"wireframe_enabled",
|
||||||
|
"wireframe_height",
|
||||||
|
"wireframe_roof_inset",
|
||||||
|
"wireframe_printspeed",
|
||||||
|
"wireframe_printspeed_bottom",
|
||||||
|
"wireframe_printspeed_up",
|
||||||
|
"wireframe_printspeed_down",
|
||||||
|
"wireframe_printspeed_flat",
|
||||||
|
"wireframe_flow",
|
||||||
|
"wireframe_flow_connection",
|
||||||
|
"wireframe_flow_flat",
|
||||||
|
"wireframe_top_delay",
|
||||||
|
"wireframe_bottom_delay",
|
||||||
|
"wireframe_flat_delay",
|
||||||
|
"wireframe_up_half_speed",
|
||||||
|
"wireframe_top_jump",
|
||||||
|
"wireframe_fall_down",
|
||||||
|
"wireframe_drag_along",
|
||||||
|
"wireframe_strategy",
|
||||||
|
"wireframe_straight_before_down",
|
||||||
|
"wireframe_roof_fall_down",
|
||||||
|
"wireframe_roof_drag_along",
|
||||||
|
"wireframe_roof_outer_delay",
|
||||||
|
"wireframe_nozzle_clearance",
|
||||||
|
"support_tree_branch_distance",
|
||||||
|
"support_tree_collision_resolution",
|
||||||
|
}
|
||||||
|
|
||||||
|
_RENAMED_PROFILES = {
|
||||||
|
"abs_040012": "elegoo_abs_nozzle_0.40_layer_0.10",
|
||||||
|
"abs_040016": "elegoo_abs_nozzle_0.40_layer_0.15",
|
||||||
|
"abs_040020": "elegoo_abs_nozzle_0.40_layer_0.20",
|
||||||
|
"abs_040024": "elegoo_abs_nozzle_0.40_layer_0.20",
|
||||||
|
"abs_040028": "elegoo_abs_nozzle_0.40_layer_0.30",
|
||||||
|
|
||||||
|
"asa_040012": "elegoo_asa_nozzle_0.40_layer_0.10",
|
||||||
|
"asa_040016": "elegoo_asa_nozzle_0.40_layer_0.15",
|
||||||
|
"asa_040020": "elegoo_asa_nozzle_0.40_layer_0.20",
|
||||||
|
"asa_040024": "elegoo_asa_nozzle_0.40_layer_0.20",
|
||||||
|
"asa_040028": "elegoo_asa_nozzle_0.40_layer_0.30",
|
||||||
|
|
||||||
|
"petg_040012": "elegoo_petg_nozzle_0.40_layer_0.10",
|
||||||
|
"petg_040016": "elegoo_petg_nozzle_0.40_layer_0.15",
|
||||||
|
"petg_040020": "elegoo_petg_nozzle_0.40_layer_0.20",
|
||||||
|
"petg_040024": "elegoo_petg_nozzle_0.40_layer_0.20",
|
||||||
|
"petg_040028": "elegoo_petg_nozzle_0.40_layer_0.30",
|
||||||
|
|
||||||
|
"pla_040012": "elegoo_pla_nozzle_0.40_layer_0.10",
|
||||||
|
"pla_040016": "elegoo_pla_nozzle_0.40_layer_0.15",
|
||||||
|
"pla_040020": "elegoo_pla_nozzle_0.40_layer_0.20",
|
||||||
|
"pla_040024": "elegoo_pla_nozzle_0.40_layer_0.20",
|
||||||
|
"pla_040028": "elegoo_pla_nozzle_0.40_layer_0.30",
|
||||||
|
|
||||||
|
"tpu_040012": "elegoo_tpu_nozzle_0.40_layer_0.10",
|
||||||
|
"tpu_040016": "elegoo_tpu_nozzle_0.40_layer_0.15",
|
||||||
|
"tpu_040020": "elegoo_tpu_nozzle_0.40_layer_0.20",
|
||||||
|
"tpu_040024": "elegoo_tpu_nozzle_0.40_layer_0.20",
|
||||||
|
"tpu_040028": "elegoo_tpu_nozzle_0.40_layer_0.30",
|
||||||
|
|
||||||
|
"elegoo_global_012_high": "elegoo_layer_0.10",
|
||||||
|
"elegoo_global_016_normal": "elegoo_layer_0.15",
|
||||||
|
"elegoo_global_020_fine": "elegoo_layer_0.20",
|
||||||
|
"elegoo_global_024_medium": "elegoo_layer_0.20",
|
||||||
|
"elegoo_global_028_draft": "elegoo_layer_0.30",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class VersionUpgrade53to54(VersionUpgrade):
|
||||||
|
def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades preferences to remove from the visibility list the settings that were removed in this version.
|
||||||
|
It also changes the preferences to have the new version number.
|
||||||
|
|
||||||
|
This removes any settings that were removed in the new Cura version.
|
||||||
|
:param serialized: The original contents of the preferences file.
|
||||||
|
:param filename: The file name of the preferences file.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None)
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
parser["metadata"]["setting_version"] = "22"
|
||||||
|
|
||||||
|
# Remove deleted settings from the visible settings list.
|
||||||
|
if "general" in parser and "visible_settings" in parser["general"]:
|
||||||
|
visible_settings = set(parser["general"]["visible_settings"].split(";"))
|
||||||
|
for removed in _REMOVED_SETTINGS:
|
||||||
|
if removed in visible_settings:
|
||||||
|
visible_settings.remove(removed)
|
||||||
|
|
||||||
|
parser["general"]["visible_settings"] = ";".join(visible_settings)
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
||||||
|
|
||||||
|
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades instance containers to remove the settings that were removed in this version.
|
||||||
|
It also changes the instance containers to have the new version number.
|
||||||
|
|
||||||
|
This removes any settings that were removed in the new Cura version and updates settings that need to be updated
|
||||||
|
with a new value.
|
||||||
|
|
||||||
|
:param serialized: The original contents of the instance container.
|
||||||
|
:param filename: The original file name of the instance container.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None, comment_prefixes = ())
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
parser["metadata"]["setting_version"] = "22"
|
||||||
|
|
||||||
|
if "values" in parser:
|
||||||
|
# Remove deleted settings from the instance containers.
|
||||||
|
for removed in _REMOVED_SETTINGS:
|
||||||
|
if removed in parser["values"]:
|
||||||
|
del parser["values"][removed]
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
||||||
|
|
||||||
|
def upgradeStack(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
"""
|
||||||
|
Upgrades stacks to have the new version number.
|
||||||
|
|
||||||
|
:param serialized: The original contents of the stack.
|
||||||
|
:param filename: The original file name of the stack.
|
||||||
|
:return: A list of new file names, and a list of the new contents for
|
||||||
|
those files.
|
||||||
|
"""
|
||||||
|
parser = configparser.ConfigParser(interpolation = None)
|
||||||
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
# Update version number.
|
||||||
|
if "metadata" not in parser:
|
||||||
|
parser["metadata"] = {}
|
||||||
|
|
||||||
|
parser["metadata"]["setting_version"] = "22"
|
||||||
|
|
||||||
|
for container in parser['containers']:
|
||||||
|
parser['containers'][container] = _RENAMED_PROFILES.get(parser['containers'][container], parser['containers'][container])
|
||||||
|
|
||||||
|
result = io.StringIO()
|
||||||
|
parser.write(result)
|
||||||
|
return [filename], [result.getvalue()]
|
61
plugins/VersionUpgrade/VersionUpgrade53to54/__init__.py
Normal file
61
plugins/VersionUpgrade/VersionUpgrade53to54/__init__.py
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
# Copyright (c) 2023 UltiMaker
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
from typing import Any, Dict, TYPE_CHECKING
|
||||||
|
|
||||||
|
from . import VersionUpgrade53to54
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from UM.Application import Application
|
||||||
|
|
||||||
|
upgrade = VersionUpgrade53to54.VersionUpgrade53to54()
|
||||||
|
|
||||||
|
|
||||||
|
def getMetaData() -> Dict[str, Any]:
|
||||||
|
return {
|
||||||
|
"version_upgrade": {
|
||||||
|
# From To Upgrade function
|
||||||
|
("preferences", 7000021): ("preferences", 7000022, upgrade.upgradePreferences),
|
||||||
|
("machine_stack", 5000021): ("machine_stack", 5000022, upgrade.upgradeStack),
|
||||||
|
("extruder_train", 5000021): ("extruder_train", 5000022, upgrade.upgradeStack),
|
||||||
|
("definition_changes", 4000021): ("definition_changes", 4000022, upgrade.upgradeInstanceContainer),
|
||||||
|
("quality_changes", 4000021): ("quality_changes", 4000022, upgrade.upgradeInstanceContainer),
|
||||||
|
("quality", 4000021): ("quality", 4000022, upgrade.upgradeInstanceContainer),
|
||||||
|
("user", 4000021): ("user", 4000022, upgrade.upgradeInstanceContainer),
|
||||||
|
("intent", 4000021): ("intent", 4000022, upgrade.upgradeInstanceContainer),
|
||||||
|
},
|
||||||
|
"sources": {
|
||||||
|
"preferences": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"."}
|
||||||
|
},
|
||||||
|
"machine_stack": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./machine_instances"}
|
||||||
|
},
|
||||||
|
"extruder_train": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./extruders"}
|
||||||
|
},
|
||||||
|
"definition_changes": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./definition_changes"}
|
||||||
|
},
|
||||||
|
"quality_changes": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./quality_changes"}
|
||||||
|
},
|
||||||
|
"quality": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./quality"}
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"get_version": upgrade.getCfgVersion,
|
||||||
|
"location": {"./user"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def register(app: "Application") -> Dict[str, Any]:
|
||||||
|
return {"version_upgrade": upgrade}
|
8
plugins/VersionUpgrade/VersionUpgrade53to54/plugin.json
Normal file
8
plugins/VersionUpgrade/VersionUpgrade53to54/plugin.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "Version Upgrade 5.3 to 5.4",
|
||||||
|
"author": "UltiMaker",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Upgrades configurations from Cura 5.3 to Cura 5.4.",
|
||||||
|
"api": 8,
|
||||||
|
"i18n-catalog": "cura"
|
||||||
|
}
|
|
@ -84,6 +84,8 @@ class Definition(Linter):
|
||||||
self._loadDefinitionFiles(parent_file)
|
self._loadDefinitionFiles(parent_file)
|
||||||
|
|
||||||
def _isDefinedInParent(self, key, value_dict, inherits_from):
|
def _isDefinedInParent(self, key, value_dict, inherits_from):
|
||||||
|
if self._ignore(key, "diagnostic-definition-redundant-override"):
|
||||||
|
return False, None, None, None
|
||||||
if "overrides" not in self._definitions[inherits_from]:
|
if "overrides" not in self._definitions[inherits_from]:
|
||||||
return self._isDefinedInParent(key, value_dict, self._definitions[inherits_from]["inherits"])
|
return self._isDefinedInParent(key, value_dict, self._definitions[inherits_from]["inherits"])
|
||||||
|
|
||||||
|
@ -119,7 +121,6 @@ class Definition(Linter):
|
||||||
return False, None, None, None
|
return False, None, None, None
|
||||||
|
|
||||||
def _loadBasePrinterSettings(self):
|
def _loadBasePrinterSettings(self):
|
||||||
""" TODO @Jelle please explain why this """
|
|
||||||
settings = {}
|
settings = {}
|
||||||
for k, v in self._definitions[self.base_def]["settings"].items():
|
for k, v in self._definitions[self.base_def]["settings"].items():
|
||||||
self._getSetting(k, v, settings)
|
self._getSetting(k, v, settings)
|
||||||
|
@ -130,3 +131,11 @@ class Definition(Linter):
|
||||||
for childname, child in setting["children"].items():
|
for childname, child in setting["children"].items():
|
||||||
self._getSetting(childname, child, settings)
|
self._getSetting(childname, child, settings)
|
||||||
settings |= {name: setting}
|
settings |= {name: setting}
|
||||||
|
|
||||||
|
def _ignore(self, key: dict, type_of_check: str) -> bool:
|
||||||
|
if f"{type_of_check}-ignore" in self._settings:
|
||||||
|
filters = [re.compile(f) for f in self._settings[f"{type_of_check}-ignore"]]
|
||||||
|
for f in filters:
|
||||||
|
if f.match(key):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
pytest
|
pytest
|
||||||
pyinstaller
|
pyinstaller==5.8.0
|
||||||
pyinstaller-hooks-contrib
|
pyinstaller-hooks-contrib
|
||||||
pyyaml
|
pyyaml
|
||||||
sip==6.5.1
|
sip==6.5.1
|
||||||
|
|
210
requirements.txt
210
requirements.txt
|
@ -1,40 +1,64 @@
|
||||||
### Direct requirements for Uranium and libCharon ###
|
### Direct requirements for Uranium and libCharon ###
|
||||||
PyQt6-sip==13.2.1 \
|
PyQt6-sip==13.4.1 \
|
||||||
--hash=sha256:b7bce59900b2e0a04f70246de2ccf79ee7933036b6b9183cf039b62eeae2b858 \
|
--hash=sha256:0df998f2b6ceeacfd10de773441572e215be0c9cae566cc7dd36e231bf714a12 \
|
||||||
--hash=sha256:8b52d42e42e6e9f934ac7528cd154ac0210a532bb33fa1edfb4a8bbfb73ff88b \
|
--hash=sha256:224575e84805c4317bacd5d1b8e93e0ad5c48685dadbbe1e902d4ebe16f22828 \
|
||||||
--hash=sha256:0314d011633bc697e99f3f9897b484720e81a5f4ba0eaa5f05c5811e2e74ea53 \
|
--hash=sha256:36ae29cdc223cacc1257d0f5075cf81474550c6d26b728f922487a2aa935f130 \
|
||||||
--hash=sha256:226e9e349aa16dc1132f106ca01fa99cf7cb8e59daee29304c2fea5fa33212ec
|
--hash=sha256:3a674c591d4274d4ea8127205290e927a7dab0eb87a0038d4f4ea1d430782649 \
|
||||||
PyQt6==6.2.3 \
|
--hash=sha256:3ef9392e4ae29d393b79237d85840cdc6b8831f36eed5d56c7d9b329b380cc8d \
|
||||||
--hash=sha256:a9bfcac198fe4b703706f809bb686c7cef5f60a7c802fc145c6b57929c7a6a34 \
|
--hash=sha256:43935873d60f57719632840d517afee04ef8f30e92cfe0dadc7e6326691920fc \
|
||||||
--hash=sha256:11c039b07962b29246de2da0912f4f663786185fd74d48daac7a270a43c8d92a \
|
--hash=sha256:5731f22618435654352ef07684549a17be82b75254227fc80b4b5b0b59fc6656 \
|
||||||
--hash=sha256:8a2f357b86fec8598f52f16d5f93416931017ca1986d5f68679c9565bfc21fff \
|
--hash=sha256:5bc4beb6fb1de4c9ba8beee7b1a4a813fa888c3b095206dafcd25d7e6e4ed2a7 \
|
||||||
--hash=sha256:577334c9d4518022a4cb6f9799dfbd1b996167eb31404b5a63d6c43d603e6418
|
--hash=sha256:5c36ab984402e96792eebf4b031abfaa589aa20af3190a79c54502c16964d97e \
|
||||||
PyQt6-Qt6==6.2.4 \
|
--hash=sha256:a2a0461992c6657f343308b150c4d6b57e9e7a0e5c2f79538434e7fb869ea827 \
|
||||||
--hash=sha256:42c37475a50ec7e06e0445ac9ce39465f69a86af407ad9b28b183da178d401ee \
|
--hash=sha256:a81490ee84d7a41a126b116081bd97d758f41bf706aee0a8cec24d6e4c660184 \
|
||||||
--hash=sha256:b68543e5d5a4f5d24c26b517569da3cd30b0fbe75390b841e142c160399b3c0a \
|
--hash=sha256:e00e287ea05bbc293fc6e2198301962af9b7b622bd2daf4288f925a88ae35dc9 \
|
||||||
--hash=sha256:0aa93581b92e01deaf2dcaad88ed6718996a6d84de59ee88316bcba143f008c9 \
|
--hash=sha256:e670a7b2fb7e32204ce67d274017bfff3e21139d217d60cebbfcb75b019c91ee \
|
||||||
--hash=sha256:48bc5b7400d6bca13d8c0a145f82295a6da317952ee1a3f107f1cd7d078c8140
|
--hash=sha256:ee06f255787a0b4957f357f93b78d2a11ca3761916833e3afa83f1381d4d1a46 \
|
||||||
PyQt6-NetworkAuth==6.2.0 \
|
--hash=sha256:fbee0d554e0e98f56dbf6d94b00a28cc32425938ad7ae98fd91f8822c5b24d45 \
|
||||||
--hash=sha256:23e730cc0d6b828bec2f92d9fac3607871e6033a8af4620e5d4e3afc13bd6c3c \
|
--hash=sha256:fcc6d78314783f4a193f02353f431b7ea4d357f47c3c7a7d0740e723f69c64dc
|
||||||
--hash=sha256:b85ee25b01d6cb38d6141df0052b96de2df7f6e69066eaddb22ae238f56be40b \
|
PyQt6==6.4.2 \
|
||||||
--hash=sha256:e637781a00dd2032d0fd2025af09274898335033763e1dc765a5a99348f60c3b \
|
--hash=sha256:18d1daf98d9236d55102cdadafd1056f5802f3c9288fcf7238569937b71a89f0 \
|
||||||
--hash=sha256:542e9d9a8a5bb78e1f26fa3d35ee01f45209bcf5a35b0cc367aaa85932c29750
|
--hash=sha256:25bd399b4a95dce65d5f937c1aa85d3c7e14a21745ae2a4ca14c0116cd104290 \
|
||||||
PyQt6-NetworkAuth-Qt6==6.2.4 \
|
--hash=sha256:740244f608fe15ee1d89695c43f31a14caeca41c4f02ac36c86dfba4a5d5813d \
|
||||||
--hash=sha256:c7996a9d8c4ce024529ec37981fbfd525ab1a2d497af1281f81f2b6054452d2e \
|
--hash=sha256:c128bc0f17833e324593e3db83e99470d451a197dd17ff0333927b946c935bd9
|
||||||
--hash=sha256:1ae9e08e03bd9d5ebdb42dfaccf484a9cc62eeea7504621fe42c005ff1745e66 \
|
PyQt6-Qt6==6.4.2 \
|
||||||
--hash=sha256:8ed4e5e0eaaa42a6f91aba6745eea23fb3ffcbddc6b162016936530ed28dd0ad
|
--hash=sha256:9f07c3c100cb46cca4074965e7494d4df4f0fc016497d5303c1fe135822876e1 \
|
||||||
PyQt6-sip==13.2.1 \
|
--hash=sha256:a29b8c858babd523e80c8db5f8fd19792641588ec04eab49af18b7a4423eb99f \
|
||||||
--hash=sha256:b7bce59900b2e0a04f70246de2ccf79ee7933036b6b9183cf039b62eeae2b858 \
|
--hash=sha256:c0e91d0275d428496cacff717a9b719c52bfa52b21f124d638b79cc2217bc81e \
|
||||||
--hash=sha256:8b52d42e42e6e9f934ac7528cd154ac0210a532bb33fa1edfb4a8bbfb73ff88b \
|
--hash=sha256:d19c4e72615762cd6f0b043f23fa5f0b02656091427ce6de1efccd58e10e6a53
|
||||||
--hash=sha256:0314d011633bc697e99f3f9897b484720e81a5f4ba0eaa5f05c5811e2e74ea53 \
|
PyQt6-NetworkAuth==6.4.0 \
|
||||||
--hash=sha256:226e9e349aa16dc1132f106ca01fa99cf7cb8e59daee29304c2fea5fa33212ec
|
--hash=sha256:ab6178b3b2902ae9939a148555cfcee8c7803d6b0d5924cd1bd8f3407b8b9210 \
|
||||||
|
--hash=sha256:c16ec80232d88024b60d04386a23cc93067e5644a65f47f26ffb13d84dcd4a6d \
|
||||||
|
--hash=sha256:c302cd0d838c7229eda5e26e0b1b3d3ec4f8720f8d9379472bce5a89ff0735c2 \
|
||||||
|
--hash=sha256:d948fc0cf43b64afbda2acb5bf2392f785a1e7a2950d79ea850c1a3f4ae12f1a
|
||||||
|
PyQt6-NetworkAuth-Qt6==6.4.2 \
|
||||||
|
--hash=sha256:179094bcb4d4d056316c22d3d067cd94d4591da23f804461bfb025ccfa29b2b4 \
|
||||||
|
--hash=sha256:1de6abbb5fa6585b97ae49d3f64b0dfad40bd56b1a31744d9775ff26247241c8 \
|
||||||
|
--hash=sha256:79ec4b0fc9450bbedbff03541b93b10d1c7e761cd2cc16ce70d2b09dcdf8c720 \
|
||||||
|
--hash=sha256:d96d557fe61edb9b68d189f270f0393d6579c8d308e6b0d41bc0699371d7cb4e
|
||||||
certifi==2021.10.8 \
|
certifi==2021.10.8 \
|
||||||
--hash=sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872 \
|
--hash=sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872 \
|
||||||
--hash=sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569
|
--hash=sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569
|
||||||
cryptography==3.4.8; \
|
cryptography==3.4.8; \
|
||||||
--hash=sha256:a00cf305f07b26c351d8d4e1af84ad7501eca8a342dedf24a7acb0e7b7406e14 \
|
--hash=sha256:0a7dcbcd3f1913f664aca35d47c1331fce738d44ec34b7be8b9d332151b0b01e \
|
||||||
|
--hash=sha256:1eb7bb0df6f6f583dd8e054689def236255161ebbcf62b226454ab9ec663746b \
|
||||||
|
--hash=sha256:21ca464b3a4b8d8e86ba0ee5045e103a1fcfac3b39319727bc0fc58c09c6aff7 \
|
||||||
|
--hash=sha256:34dae04a0dce5730d8eb7894eab617d8a70d0c97da76b905de9efb7128ad7085 \
|
||||||
--hash=sha256:3520667fda779eb788ea00080124875be18f2d8f0848ec00733c0ec3bb8219fc \
|
--hash=sha256:3520667fda779eb788ea00080124875be18f2d8f0848ec00733c0ec3bb8219fc \
|
||||||
--hash=sha256:1eb7bb0df6f6f583dd8e054689def236255161ebbcf62b226454ab9ec663746b
|
--hash=sha256:3c4129fc3fdc0fa8e40861b5ac0c673315b3c902bbdc05fc176764815b43dd1d \
|
||||||
|
--hash=sha256:3fa3a7ccf96e826affdf1a0a9432be74dc73423125c8f96a909e3835a5ef194a \
|
||||||
|
--hash=sha256:5b0fbfae7ff7febdb74b574055c7466da334a5371f253732d7e2e7525d570498 \
|
||||||
|
--hash=sha256:695104a9223a7239d155d7627ad912953b540929ef97ae0c34c7b8bf30857e89 \
|
||||||
|
--hash=sha256:8695456444f277af73a4877db9fc979849cd3ee74c198d04fc0776ebc3db52b9 \
|
||||||
|
--hash=sha256:94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c \
|
||||||
|
--hash=sha256:94fff993ee9bc1b2440d3b7243d488c6a3d9724cc2b09cdb297f6a886d040ef7 \
|
||||||
|
--hash=sha256:9965c46c674ba8cc572bc09a03f4c649292ee73e1b683adb1ce81e82e9a6a0fb \
|
||||||
|
--hash=sha256:a00cf305f07b26c351d8d4e1af84ad7501eca8a342dedf24a7acb0e7b7406e14 \
|
||||||
|
--hash=sha256:a305600e7a6b7b855cd798e00278161b681ad6e9b7eca94c721d5f588ab212af \
|
||||||
|
--hash=sha256:cd65b60cfe004790c795cc35f272e41a3df4631e2fb6b35aa7ac6ef2859d554e \
|
||||||
|
--hash=sha256:d2a6e5ef66503da51d2110edf6c403dc6b494cc0082f85db12f54e9c5d4c3ec5 \
|
||||||
|
--hash=sha256:d9ec0e67a14f9d1d48dd87a2531009a9b251c02ea42851c060b25c782516ff06 \
|
||||||
|
--hash=sha256:f44d141b8c4ea5eb4dbc9b3ad992d45580c1d22bf5e24363f2fbf50c2d7ae8a7
|
||||||
zeroconf==0.31.0 \
|
zeroconf==0.31.0 \
|
||||||
--hash=sha256:53a180248471c6f81bd1fffcbce03ed93d7d8eaf10905c9121ac1ea996d19844 \
|
--hash=sha256:53a180248471c6f81bd1fffcbce03ed93d7d8eaf10905c9121ac1ea996d19844 \
|
||||||
--hash=sha256:5a468da018bc3f04bbce77ae247924d802df7aeb4c291bbbb5a9616d128800b0
|
--hash=sha256:5a468da018bc3f04bbce77ae247924d802df7aeb4c291bbbb5a9616d128800b0
|
||||||
|
@ -52,20 +76,69 @@ https://software.ultimaker.com/cura-binary-dependencies/numpy-1.21.5+mkl-cp310-c
|
||||||
--hash=sha256:fbd5d5126b730a151134d21994a951fe28df06464e0c9a2cba2a4132e542a5fc
|
--hash=sha256:fbd5d5126b730a151134d21994a951fe28df06464e0c9a2cba2a4132e542a5fc
|
||||||
numpy==1.21.5; \
|
numpy==1.21.5; \
|
||||||
sys_platform!="win32" \
|
sys_platform!="win32" \
|
||||||
|
--hash=sha256:00c9fa73a6989895b8815d98300a20ac993c49ac36c8277e8ffeaa3631c0dbbb \
|
||||||
|
--hash=sha256:025b497014bc33fc23897859350f284323f32a2fff7654697f5a5fc2a19e9939 \
|
||||||
|
--hash=sha256:08de8472d9f7571f9d51b27b75e827f5296295fa78817032e84464be8bb905bc \
|
||||||
|
--hash=sha256:1964db2d4a00348b7a60ee9d013c8cb0c566644a589eaa80995126eac3b99ced \
|
||||||
|
--hash=sha256:2a9add27d7fc0fdb572abc3b2486eb3b1395da71e0254c5552b2aad2a18b5441 \
|
||||||
|
--hash=sha256:2d8adfca843bc46ac199a4645233f13abf2011a0b2f4affc5c37cd552626f27b \
|
||||||
--hash=sha256:301e408a052fdcda5cdcf03021ebafc3c6ea093021bf9d1aa47c54d48bdad166 \
|
--hash=sha256:301e408a052fdcda5cdcf03021ebafc3c6ea093021bf9d1aa47c54d48bdad166 \
|
||||||
--hash=sha256:a7e8f6216f180f3fd4efb73de5d1eaefb5f5a1ee5b645c67333033e39440e63a \
|
--hash=sha256:311283acf880cfcc20369201bd75da907909afc4666966c7895cbed6f9d2c640 \
|
||||||
--hash=sha256:fc7a7d7b0ed72589fd8b8486b9b42a564f10b8762be8bd4d9df94b807af4a089 \
|
--hash=sha256:341dddcfe3b7b6427a28a27baa59af5ad51baa59bfec3264f1ab287aa3b30b13 \
|
||||||
|
--hash=sha256:3a5098df115340fb17fc93867317a947e1dcd978c3888c5ddb118366095851f8 \
|
||||||
|
--hash=sha256:3c978544be9e04ed12016dd295a74283773149b48f507d69b36f91aa90a643e5 \
|
||||||
|
--hash=sha256:3d893b0871322eaa2f8c7072cdb552d8e2b27645b7875a70833c31e9274d4611 \
|
||||||
|
--hash=sha256:4fe6a006557b87b352c04596a6e3f12a57d6e5f401d804947bd3188e6b0e0e76 \
|
||||||
|
--hash=sha256:507c05c7a37b3683eb08a3ff993bd1ee1e6c752f77c2f275260533b265ecdb6c \
|
||||||
--hash=sha256:58ca1d7c8aef6e996112d0ce873ac9dfa1eaf4a1196b4ff7ff73880a09923ba7 \
|
--hash=sha256:58ca1d7c8aef6e996112d0ce873ac9dfa1eaf4a1196b4ff7ff73880a09923ba7 \
|
||||||
|
--hash=sha256:61bada43d494515d5b122f4532af226fdb5ee08fe5b5918b111279843dc6836a \
|
||||||
|
--hash=sha256:69a5a8d71c308d7ef33ef72371c2388a90e3495dbb7993430e674006f94797d5 \
|
||||||
|
--hash=sha256:6a5928bc6241264dce5ed509e66f33676fc97f464e7a919edc672fb5532221ee \
|
||||||
|
--hash=sha256:7b9d6b14fc9a4864b08d1ba57d732b248f0e482c7b2ff55c313137e3ed4d8449 \
|
||||||
|
--hash=sha256:a7c4b701ca418cd39e28ec3b496e6388fe06de83f5f0cb74794fa31cfa384c02 \
|
||||||
|
--hash=sha256:a7e8f6216f180f3fd4efb73de5d1eaefb5f5a1ee5b645c67333033e39440e63a \
|
||||||
|
--hash=sha256:b545ebadaa2b878c8630e5bcdb97fc4096e779f335fc0f943547c1c91540c815 \
|
||||||
|
--hash=sha256:c293d3c0321996cd8ffe84215ffe5d269fd9d1d12c6f4ffe2b597a7c30d3e593 \
|
||||||
|
--hash=sha256:c5562bcc1a9b61960fc8950ade44d00e3de28f891af0acc96307c73613d18f6e \
|
||||||
|
--hash=sha256:ca9c23848292c6fe0a19d212790e62f398fd9609aaa838859be8459bfbe558aa \
|
||||||
|
--hash=sha256:cc1b30205d138d1005adb52087ff45708febbef0e420386f58664f984ef56954 \
|
||||||
|
--hash=sha256:dbce7adeb66b895c6aaa1fad796aaefc299ced597f6fbd9ceddb0dd735245354 \
|
||||||
--hash=sha256:dc4b2fb01f1b4ddbe2453468ea0719f4dbb1f5caa712c8b21bb3dd1480cd30d9 \
|
--hash=sha256:dc4b2fb01f1b4ddbe2453468ea0719f4dbb1f5caa712c8b21bb3dd1480cd30d9 \
|
||||||
--hash=sha256:6a5928bc6241264dce5ed509e66f33676fc97f464e7a919edc672fb5532221ee
|
--hash=sha256:eed2afaa97ec33b4411995be12f8bdb95c87984eaa28d76cf628970c8a2d689a \
|
||||||
pyclipper==1.3.0.post2; \
|
--hash=sha256:fc7a7d7b0ed72589fd8b8486b9b42a564f10b8762be8bd4d9df94b807af4a089
|
||||||
--hash=sha256:c096703dc32f2e4700a1f7054e8b58c29fe86212fa7a2c2adecb0102cb639fb2 \
|
pyclipper==1.3.0.post3; \
|
||||||
--hash=sha256:a1525051ced1ab74e8d32282299c24c68f3e31cd4b64e0b368720b5da65aad67 \
|
--hash=sha256:1408461fba4985d58589fa74c59e273e8aa91d8b55c2e9a6abf966eed7562d90 \
|
||||||
--hash=sha256:5960aaa012cb925ef44ecabe69528809564a3c95ceac874d95c6600f207138d3 \
|
--hash=sha256:1df7e4bce6ac68abfe926d319f52b749b7c9d5e0a6bd7112a0c7f2f908abecbc \
|
||||||
--hash=sha256:d3954330c02a19f7566651a909ec4bc5733ba6c62a228ab26db4a90305748430 \
|
--hash=sha256:24b6b70114941805c14a33e9378e52d24b18791f1bfc365853d5adb33425f173 \
|
||||||
--hash=sha256:5175ee50772a7dcc0feaab19ccf5b979b6066f4753edb330700231cf70d0c918 \
|
--hash=sha256:2b0950dada5b56a002dddccf131815a8f9b55c4df86ff6a43b7ef48a91b572aa \
|
||||||
--hash=sha256:19a6809d9cbd535d0fe922e9315babb8d70b5c7dcd43e0f89740d09c406b40f8 \
|
--hash=sha256:2d51757df15f1721946f39016191c7d685306fc69d8a5f2933a1d22119150a1d \
|
||||||
--hash=sha256:5c5d50498e335d7f969ca5ad5886e77c40088521dcabab4feb2f93727140251e
|
--hash=sha256:341556b83ce2a5d4ee36e263e04751a9949e4161f60f0011f9500b845b25ce3c \
|
||||||
|
--hash=sha256:46b3996c8dcda562c408e653ccef8efd95a7d69400f9119df2c2cb8083d36bf8 \
|
||||||
|
--hash=sha256:5434e1e69425dc7958579b1f7bedfa8a7cce79400e1b708a42be769a165a3a2c \
|
||||||
|
--hash=sha256:5b4e0e360ebfc25d01c7e0873b27f912d1c02d99b84393d526bc01836a5fb9f4 \
|
||||||
|
--hash=sha256:60f20e96e9e055e9bb2e729fe6078969ce252c6b7b1b18d8d963e5343d99f99e \
|
||||||
|
--hash=sha256:615bece709d8c304d97089a83f8ff91ca0d2646e8fe42f2637d7cdfcf99a6e4e \
|
||||||
|
--hash=sha256:639fbc55569b94487f89261b1656e3e655d06888a582218c5432c426705d1f6f \
|
||||||
|
--hash=sha256:6748239b89a5edd00b3ce36cb5c7a177978ff3361de861fe2cc559bb2760625d \
|
||||||
|
--hash=sha256:679bfd1fd4595a3f58a706256dc6cc7179ee40fbeff4d134aa3163a9c87ca545 \
|
||||||
|
--hash=sha256:6ace0de72f252e48eda28981e24142a2b02ac17eacc3d8a2baf628671dd8cc8f \
|
||||||
|
--hash=sha256:771ba332790e88eb4aa9de2172131af25525ac23fdda789691e543962849f149 \
|
||||||
|
--hash=sha256:8fabba875314ebc751b66e571b8b0d5319c76e22051304880a552d70db2252af \
|
||||||
|
--hash=sha256:a050ec9df95e9611461adb7f86da4f066848c045d966c46e7b124593e6410e2a \
|
||||||
|
--hash=sha256:ab7e2f9b655333a37002b90bea47d77ff8d1f01293798911afa7f39217f1b71d \
|
||||||
|
--hash=sha256:b0097aef9ac8a5e10434059641fea338fb682c61993bfe65670e459ec14b4151 \
|
||||||
|
--hash=sha256:b509cfd696962683553cd6b9fc7f0baf05bff47c09fd68b085a8aea493436267 \
|
||||||
|
--hash=sha256:bad590e701eaef644899ce164631f83e39669796e552f17aef5a37238646b392 \
|
||||||
|
--hash=sha256:c586ca07c1418d4f010c6bc65215c4b193211e1b95dd8a1bd312d8207c5ccf6a \
|
||||||
|
--hash=sha256:cb5ad68b82c2aa408672444e567cea138db29790997d603525878632d61fd6ec \
|
||||||
|
--hash=sha256:cd9f0496daa9b505902848d401bfc3ffe80ee3a6863451fc6c05ceb2a45b9d8f \
|
||||||
|
--hash=sha256:da4d8f253dd8e152b3364902bed5e221165d3af4e71e2ae81eb9a9a9802089a2 \
|
||||||
|
--hash=sha256:e8d77755a00566e0f0cf48da2e42e76ff93423b55880621944f950058be3fc0e \
|
||||||
|
--hash=sha256:ebc13dbfaec1b489fc6ed92a642b8a2c7072fa2d4bc12514cc2bbeacd47c5baf \
|
||||||
|
--hash=sha256:ed5ea68bc6f3428fbf9d98f1e72e2020d763d88053cc9a9d31b2eeb49500b26f \
|
||||||
|
--hash=sha256:ee52b9d29512eb7b8b9faee6db3f8694eb6c8455785a5d2d561c40eca67b226f \
|
||||||
|
--hash=sha256:f428ecdd224ec30c1a4dbdbaac44e746cbe9a05c25627b05cc7bc2dcda235a26 \
|
||||||
|
--hash=sha256:f5f3ad171f21511813085ac549bb717bbdcc0f4da27abf6b0629438e1f23ca0b
|
||||||
scipy==1.9.1 \
|
scipy==1.9.1 \
|
||||||
--hash=sha256:c61b4a91a702e8e04aeb0bfc40460e1f17a640977c04dda8757efb0199c75332 \
|
--hash=sha256:c61b4a91a702e8e04aeb0bfc40460e1f17a640977c04dda8757efb0199c75332 \
|
||||||
--hash=sha256:d79da472015d0120ba9b357b28a99146cd6c17b9609403164b1a8ed149b4dfc8 \
|
--hash=sha256:d79da472015d0120ba9b357b28a99146cd6c17b9609403164b1a8ed149b4dfc8 \
|
||||||
|
@ -212,15 +285,62 @@ ifaddr==0.1.7 \
|
||||||
--hash=sha256:1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94 \
|
--hash=sha256:1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94 \
|
||||||
--hash=sha256:d1f603952f0a71c9ab4e705754511e4e03b02565bc4cec7188ad6415ff534cd3
|
--hash=sha256:d1f603952f0a71c9ab4e705754511e4e03b02565bc4cec7188ad6415ff534cd3
|
||||||
pycparser==2.20 \
|
pycparser==2.20 \
|
||||||
|
--hash=sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0 \
|
||||||
--hash=sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705
|
--hash=sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705
|
||||||
zipp==3.5.0 \
|
zipp==3.5.0 \
|
||||||
--hash=sha256:957cfda87797e389580cb8b9e3870841ca991e2125350677b2ca83a0e99390a3 \
|
--hash=sha256:957cfda87797e389580cb8b9e3870841ca991e2125350677b2ca83a0e99390a3 \
|
||||||
--hash=sha256:f5812b1e007e48cff63449a5e9f4e7ebea716b4111f9c4f9a645f91d579bf0c4
|
--hash=sha256:f5812b1e007e48cff63449a5e9f4e7ebea716b4111f9c4f9a645f91d579bf0c4
|
||||||
cffi==1.15.0 \
|
cffi==1.15.0 \
|
||||||
--hash=sha256:920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954 \
|
|
||||||
--hash=sha256:5e069f72d497312b24fcc02073d70cb989045d1c91cbd53979366077959933e0 \
|
|
||||||
--hash=sha256:00c878c90cb53ccfaae6b8bc18ad05d2036553e6d9d1d9dbcf323bbe83854ca3 \
|
--hash=sha256:00c878c90cb53ccfaae6b8bc18ad05d2036553e6d9d1d9dbcf323bbe83854ca3 \
|
||||||
--hash=sha256:0104fb5ae2391d46a4cb082abdd5c69ea4eab79d8d44eaaf79f1b1fd806ee4c2
|
--hash=sha256:0104fb5ae2391d46a4cb082abdd5c69ea4eab79d8d44eaaf79f1b1fd806ee4c2 \
|
||||||
|
--hash=sha256:06c48159c1abed75c2e721b1715c379fa3200c7784271b3c46df01383b593636 \
|
||||||
|
--hash=sha256:0808014eb713677ec1292301ea4c81ad277b6cdf2fdd90fd540af98c0b101d20 \
|
||||||
|
--hash=sha256:10dffb601ccfb65262a27233ac273d552ddc4d8ae1bf93b21c94b8511bffe728 \
|
||||||
|
--hash=sha256:14cd121ea63ecdae71efa69c15c5543a4b5fbcd0bbe2aad864baca0063cecf27 \
|
||||||
|
--hash=sha256:17771976e82e9f94976180f76468546834d22a7cc404b17c22df2a2c81db0c66 \
|
||||||
|
--hash=sha256:181dee03b1170ff1969489acf1c26533710231c58f95534e3edac87fff06c443 \
|
||||||
|
--hash=sha256:23cfe892bd5dd8941608f93348c0737e369e51c100d03718f108bf1add7bd6d0 \
|
||||||
|
--hash=sha256:263cc3d821c4ab2213cbe8cd8b355a7f72a8324577dc865ef98487c1aeee2bc7 \
|
||||||
|
--hash=sha256:2756c88cbb94231c7a147402476be2c4df2f6078099a6f4a480d239a8817ae39 \
|
||||||
|
--hash=sha256:27c219baf94952ae9d50ec19651a687b826792055353d07648a5695413e0c605 \
|
||||||
|
--hash=sha256:2a23af14f408d53d5e6cd4e3d9a24ff9e05906ad574822a10563efcef137979a \
|
||||||
|
--hash=sha256:31fb708d9d7c3f49a60f04cf5b119aeefe5644daba1cd2a0fe389b674fd1de37 \
|
||||||
|
--hash=sha256:3415c89f9204ee60cd09b235810be700e993e343a408693e80ce7f6a40108029 \
|
||||||
|
--hash=sha256:3773c4d81e6e818df2efbc7dd77325ca0dcb688116050fb2b3011218eda36139 \
|
||||||
|
--hash=sha256:3b96a311ac60a3f6be21d2572e46ce67f09abcf4d09344c49274eb9e0bf345fc \
|
||||||
|
--hash=sha256:3f7d084648d77af029acb79a0ff49a0ad7e9d09057a9bf46596dac9514dc07df \
|
||||||
|
--hash=sha256:41d45de54cd277a7878919867c0f08b0cf817605e4eb94093e7516505d3c8d14 \
|
||||||
|
--hash=sha256:4238e6dab5d6a8ba812de994bbb0a79bddbdf80994e4ce802b6f6f3142fcc880 \
|
||||||
|
--hash=sha256:45db3a33139e9c8f7c09234b5784a5e33d31fd6907800b316decad50af323ff2 \
|
||||||
|
--hash=sha256:45e8636704eacc432a206ac7345a5d3d2c62d95a507ec70d62f23cd91770482a \
|
||||||
|
--hash=sha256:4958391dbd6249d7ad855b9ca88fae690783a6be9e86df65865058ed81fc860e \
|
||||||
|
--hash=sha256:4a306fa632e8f0928956a41fa8e1d6243c71e7eb59ffbd165fc0b41e316b2474 \
|
||||||
|
--hash=sha256:57e9ac9ccc3101fac9d6014fba037473e4358ef4e89f8e181f8951a2c0162024 \
|
||||||
|
--hash=sha256:59888172256cac5629e60e72e86598027aca6bf01fa2465bdb676d37636573e8 \
|
||||||
|
--hash=sha256:5e069f72d497312b24fcc02073d70cb989045d1c91cbd53979366077959933e0 \
|
||||||
|
--hash=sha256:64d4ec9f448dfe041705426000cc13e34e6e5bb13736e9fd62e34a0b0c41566e \
|
||||||
|
--hash=sha256:6dc2737a3674b3e344847c8686cf29e500584ccad76204efea14f451d4cc669a \
|
||||||
|
--hash=sha256:74fdfdbfdc48d3f47148976f49fab3251e550a8720bebc99bf1483f5bfb5db3e \
|
||||||
|
--hash=sha256:75e4024375654472cc27e91cbe9eaa08567f7fbdf822638be2814ce059f58032 \
|
||||||
|
--hash=sha256:786902fb9ba7433aae840e0ed609f45c7bcd4e225ebb9c753aa39725bb3e6ad6 \
|
||||||
|
--hash=sha256:8b6c2ea03845c9f501ed1313e78de148cd3f6cad741a75d43a29b43da27f2e1e \
|
||||||
|
--hash=sha256:91d77d2a782be4274da750752bb1650a97bfd8f291022b379bb8e01c66b4e96b \
|
||||||
|
--hash=sha256:91ec59c33514b7c7559a6acda53bbfe1b283949c34fe7440bcf917f96ac0723e \
|
||||||
|
--hash=sha256:920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954 \
|
||||||
|
--hash=sha256:a5263e363c27b653a90078143adb3d076c1a748ec9ecc78ea2fb916f9b861962 \
|
||||||
|
--hash=sha256:abb9a20a72ac4e0fdb50dae135ba5e77880518e742077ced47eb1499e29a443c \
|
||||||
|
--hash=sha256:c2051981a968d7de9dd2d7b87bcb9c939c74a34626a6e2f8181455dd49ed69e4 \
|
||||||
|
--hash=sha256:c21c9e3896c23007803a875460fb786118f0cdd4434359577ea25eb556e34c55 \
|
||||||
|
--hash=sha256:c2502a1a03b6312837279c8c1bd3ebedf6c12c4228ddbad40912d671ccc8a962 \
|
||||||
|
--hash=sha256:d4d692a89c5cf08a8557fdeb329b82e7bf609aadfaed6c0d79f5a449a3c7c023 \
|
||||||
|
--hash=sha256:da5db4e883f1ce37f55c667e5c0de439df76ac4cb55964655906306918e7363c \
|
||||||
|
--hash=sha256:e7022a66d9b55e93e1a845d8c9eba2a1bebd4966cd8bfc25d9cd07d515b33fa6 \
|
||||||
|
--hash=sha256:ef1f279350da2c586a69d32fc8733092fd32cc8ac95139a00377841f59a3f8d8 \
|
||||||
|
--hash=sha256:f54a64f8b0c8ff0b64d18aa76675262e1700f3995182267998c31ae974fbc382 \
|
||||||
|
--hash=sha256:f5c7150ad32ba43a07c4479f40241756145a1f03b43480e058cfd862bf5041c7 \
|
||||||
|
--hash=sha256:f6f824dc3bce0edab5f427efcfb1d63ee75b6fcb7282900ccaf925be84efb0fc \
|
||||||
|
--hash=sha256:fd8a250edc26254fe5b33be00402e6d287f562b6a5b2152dec302fa15bb3e997 \
|
||||||
|
--hash=sha256:ffaa5c925128e29efbde7301d8ecaf35c8c60ffbcd6a1ffd3a552177c8e5e796
|
||||||
urllib3==1.25.9 \
|
urllib3==1.25.9 \
|
||||||
--hash=sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527 \
|
--hash=sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527 \
|
||||||
--hash=sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115
|
--hash=sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115
|
||||||
|
|
|
@ -992,7 +992,7 @@
|
||||||
"display_name": "Version Upgrade 4.11 to 4.12",
|
"display_name": "Version Upgrade 4.11 to 4.12",
|
||||||
"description": "Upgrades configurations from Cura 4.11 to Cura 4.12",
|
"description": "Upgrades configurations from Cura 4.11 to Cura 4.12",
|
||||||
"package_version": "1.0.0",
|
"package_version": "1.0.0",
|
||||||
"sdk_version": 7,
|
"sdk_version": "8.2.0",
|
||||||
"sdk_version_semver": "7.7.0",
|
"sdk_version_semver": "7.7.0",
|
||||||
"website": "https://ultimaker.com",
|
"website": "https://ultimaker.com",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -1003,6 +1003,40 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"VersionUpgrade413to50": {
|
||||||
|
"package_info": {
|
||||||
|
"package_id": "VersionUpgrade413to50",
|
||||||
|
"package_type": "plugin",
|
||||||
|
"display_name": "Version Upgrade 4.13 to 5.0",
|
||||||
|
"description": "Upgrades configurations from Cura 4.13 to Cura 5.0",
|
||||||
|
"package_version": "1.0.0",
|
||||||
|
"sdk_version": "8.2.0",
|
||||||
|
"website": "https://ultimaker.com",
|
||||||
|
"author": {
|
||||||
|
"author_id": "UltimakerPackages",
|
||||||
|
"display_name": "UltiMaker",
|
||||||
|
"email": "plugins@ultimaker.com",
|
||||||
|
"website": "https://ultimaker.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"VersionUpgrade52to53": {
|
||||||
|
"package_info": {
|
||||||
|
"package_id": "VersionUpgrade52to53",
|
||||||
|
"package_type": "plugin",
|
||||||
|
"display_name": "Version Upgrade 5.2 to 5.3",
|
||||||
|
"description": "Upgrades configurations from Cura 5.2 to Cura 5.3",
|
||||||
|
"package_version": "1.0.0",
|
||||||
|
"sdk_version": "8.2.0",
|
||||||
|
"website": "https://ultimaker.com",
|
||||||
|
"author": {
|
||||||
|
"author_id": "UltimakerPackages",
|
||||||
|
"display_name": "UltiMaker",
|
||||||
|
"email": "plugins@ultimaker.com",
|
||||||
|
"website": "https://ultimaker.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"X3DReader": {
|
"X3DReader": {
|
||||||
"package_info": {
|
"package_info": {
|
||||||
"package_id": "X3DReader",
|
"package_id": "X3DReader",
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
"value": "material_print_temperature + 5"
|
"value": "material_print_temperature + 5"
|
||||||
},
|
},
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": true },
|
"optimize_wall_printing_order": { "value": true },
|
||||||
"prime_tower_brim_enable": { "value": true },
|
"prime_tower_brim_enable": { "value": true },
|
||||||
"prime_tower_min_volume":
|
"prime_tower_min_volume":
|
||||||
|
@ -133,7 +133,6 @@
|
||||||
"support_interface_pattern": { "value": "zigzag" },
|
"support_interface_pattern": { "value": "zigzag" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
"support_pattern": { "value": "'zigzag'" },
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_wall_count": { "value": 0 },
|
"support_wall_count": { "value": 0 },
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
"value": "material_print_temperature + 5"
|
"value": "material_print_temperature + 5"
|
||||||
},
|
},
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": true },
|
"optimize_wall_printing_order": { "value": true },
|
||||||
"prime_tower_brim_enable": { "value": true },
|
"prime_tower_brim_enable": { "value": true },
|
||||||
"prime_tower_min_volume":
|
"prime_tower_min_volume":
|
||||||
|
@ -134,7 +134,6 @@
|
||||||
"support_interface_pattern": { "value": "zigzag" },
|
"support_interface_pattern": { "value": "zigzag" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
"support_pattern": { "value": "'zigzag'" },
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_wall_count": { "value": 0 },
|
"support_wall_count": { "value": 0 },
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
"value": "material_print_temperature + 5"
|
"value": "material_print_temperature + 5"
|
||||||
},
|
},
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": true },
|
"optimize_wall_printing_order": { "value": true },
|
||||||
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'all'" },
|
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'all'" },
|
||||||
"retraction_combing_max_distance": { "value": 30 },
|
"retraction_combing_max_distance": { "value": 30 },
|
||||||
|
@ -121,7 +121,6 @@
|
||||||
"support_interface_pattern": { "value": "zigzag" },
|
"support_interface_pattern": { "value": "zigzag" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
"support_pattern": { "value": "'zigzag'" },
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_wall_count": { "value": 0 },
|
"support_wall_count": { "value": 0 },
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"machine_center_is_zero": { "default_value": false },
|
"machine_center_is_zero": { "default_value": false },
|
||||||
"machine_depth": { "default_value": 220 },
|
"machine_depth": { "default_value": 220 },
|
||||||
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y215 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y215 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
||||||
"machine_gcode_flavor": { "default_value": "RepRap" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": false },
|
"machine_heated_bed": { "default_value": false },
|
||||||
"machine_height": { "default_value": 200 },
|
"machine_height": { "default_value": 200 },
|
||||||
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"machine_center_is_zero": { "default_value": false },
|
"machine_center_is_zero": { "default_value": false },
|
||||||
"machine_depth": { "default_value": 310 },
|
"machine_depth": { "default_value": 310 },
|
||||||
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y300 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y300 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
||||||
"machine_gcode_flavor": { "default_value": "RepRap" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": false },
|
"machine_heated_bed": { "default_value": false },
|
||||||
"machine_height": { "default_value": 300 },
|
"machine_height": { "default_value": 300 },
|
||||||
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"machine_center_is_zero": { "default_value": false },
|
"machine_center_is_zero": { "default_value": false },
|
||||||
"machine_depth": { "default_value": 310 },
|
"machine_depth": { "default_value": 310 },
|
||||||
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y300 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
"machine_end_gcode": { "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nM140 S0 ;set temp of bed to Zero \nG91 ;set to relative positioning\nG1 E-10 F300 ;retract the filament a bit to release some of the pressure\nG1 F2000 X0 Y300 ;move X to min and Y to max \nG90 ;set to absolute positioning\nM84 ;turn off steppers\n; -- end of END GCODE --" },
|
||||||
"machine_gcode_flavor": { "default_value": "RepRap" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": false },
|
"machine_heated_bed": { "default_value": false },
|
||||||
"machine_height": { "default_value": 300 },
|
"machine_height": { "default_value": 300 },
|
||||||
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
"machine_start_gcode": { "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z5.0 F200 ;move Z to position 5.0 mm\nG92 E0 ;zero the extruded length\n; -- end of START GCODE --" },
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
"value": "material_print_temperature + 5"
|
"value": "material_print_temperature + 5"
|
||||||
},
|
},
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"retraction_amount": { "default_value": 1.5 },
|
"retraction_amount": { "default_value": 1.5 },
|
||||||
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'infill'" },
|
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'infill'" },
|
||||||
"retraction_hop": { "value": 0.2 },
|
"retraction_hop": { "value": 0.2 },
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
},
|
},
|
||||||
"meshfix_maximum_deviation": { "value": 0.05 },
|
"meshfix_maximum_deviation": { "value": 0.05 },
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": "True" },
|
"optimize_wall_printing_order": { "value": "True" },
|
||||||
"retraction_amount": { "value": 6 },
|
"retraction_amount": { "value": 6 },
|
||||||
"retraction_combing": { "value": "'off'" },
|
"retraction_combing": { "value": "'off'" },
|
||||||
|
@ -110,13 +110,9 @@
|
||||||
"support_interface_enable": { "value": true },
|
"support_interface_enable": { "value": true },
|
||||||
"support_interface_height": { "value": "layer_height * 4" },
|
"support_interface_height": { "value": "layer_height * 4" },
|
||||||
"support_interface_pattern": { "value": "'grid'" },
|
"support_interface_pattern": { "value": "'grid'" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
|
||||||
"support_pattern": { "value": "'zigzag'" },
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
"support_structure": { "value": "'tree'" },
|
"support_structure": { "value": "'tree'" },
|
||||||
"support_top_distance": { "value": "extruderValue(support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr, 'support_z_distance') + (layer_height if support_structure == 'tree' else 0)" },
|
|
||||||
"support_type": { "value": "'buildplate' if support_structure == 'tree' else 'everywhere'" },
|
"support_type": { "value": "'buildplate' if support_structure == 'tree' else 'everywhere'" },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_wall_count": { "value": 1 },
|
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
|
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
|
||||||
|
|
29
resources/definitions/anycubic_kobra_go.def.json
Normal file
29
resources/definitions/anycubic_kobra_go.def.json
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"name": "Anycubic Kobra Go",
|
||||||
|
"inherits": "fdmprinter",
|
||||||
|
"metadata":
|
||||||
|
{
|
||||||
|
"visible": true,
|
||||||
|
"author": "Kolja Lampe",
|
||||||
|
"manufacturer": "Anycubic",
|
||||||
|
"file_formats": "text/x-gcode",
|
||||||
|
"firmware_file": "MarlinChiron.hex",
|
||||||
|
"has_machine_quality": true,
|
||||||
|
"has_materials": true,
|
||||||
|
"machine_extruder_trains": { "0": "anycubic_kobra_go_extruder_0" },
|
||||||
|
"preferred_material": "generic_pla",
|
||||||
|
"preferred_quality_type": "pla",
|
||||||
|
"quality_definition": "anycubic_kobra_go"
|
||||||
|
},
|
||||||
|
"overrides":
|
||||||
|
{
|
||||||
|
"machine_depth": { "default_value": 222 },
|
||||||
|
"machine_end_gcode": { "default_value": "M400 ; Wait for current moves to finish\nM220 S100 ; Reset Speed factor override percentage to default (100%)\nM221 S100 ; Reset Extrude factor override percentage to default (100%)\nG91 ; Set coordinates to relative\nG1 F2400 E-1 ; Retract filament 3mm at 40mm/s to prevent stringing\nG0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely\nG90 ; Set coordinates to absolute\nG0 X0 Y220 F5000 ; Move Heat Bed to the front for easy print removal\nM104 S0 ; turn off extruder\nM140 S0 ; turn off bed\nM84 ; Disable stepper motors\n; End of custom end GCode" },
|
||||||
|
"machine_heated_bed": { "default_value": true },
|
||||||
|
"machine_height": { "default_value": 250 },
|
||||||
|
"machine_name": { "default_value": "Anycubic Kobra Go" },
|
||||||
|
"machine_start_gcode": { "default_value": "M140 S[first_layer_bed_temperature]; Heat bed\nM104 S[first_layer_temperature\n ]; Heat extruder\nG21 ;metric values\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nG28 ; Home all axes\nG92 E0 ; Reset Extruder\nM420 S1 ; Enable Bed Levelling Mesh\nM190 S[first_layer_bed_temperature\n ]; Wait for bed to get up to temperature\nM109 S[first_layer_temperature\n ]; Wait for extruder to get up to temperature\nG1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed\nG1 X2 Y20 Z0.3 F5000.0 ; Move to start position\nG1 X2 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line\nG1 X2.4 Y200.0 Z0.3 F5000.0 ; Move to side a little\nG1 X2.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line\nG92 E0 ; Reset Extruder\nG1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed\nG1 F2400 E-1\nG1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish" },
|
||||||
|
"machine_width": { "default_value": 222 }
|
||||||
|
}
|
||||||
|
}
|
|
@ -34,7 +34,7 @@
|
||||||
"machine_depth": { "default_value": 310 },
|
"machine_depth": { "default_value": 310 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM104 S0 T1\nM104 S0 T0\nM140 S0\nM117\nG28 X0 Y0\nT0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM104 S0 T1\nM104 S0 T0\nM140 S0\nM117\nG28 X0 Y0\nT0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 2 },
|
"machine_extruder_count": { "default_value": 2 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 290 },
|
"machine_height": { "default_value": 290 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"machine_depth": { "default_value": 310 },
|
"machine_depth": { "default_value": 310 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 1 },
|
"machine_extruder_count": { "default_value": 1 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 290 },
|
"machine_height": { "default_value": 290 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"machine_depth": { "default_value": 310 },
|
"machine_depth": { "default_value": 310 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 1 },
|
"machine_extruder_count": { "default_value": 1 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 290 },
|
"machine_height": { "default_value": 290 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"machine_depth": { "default_value": 300 },
|
"machine_depth": { "default_value": 300 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM104 S0 T1\nM104 S0 T0\nM140 S0\nM117\nG28 X0 Y0\nT0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM104 S0 T1\nM104 S0 T0\nM140 S0\nM117\nG28 X0 Y0\nT0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 2 },
|
"machine_extruder_count": { "default_value": 2 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 293 },
|
"machine_height": { "default_value": 293 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"machine_depth": { "default_value": 300 },
|
"machine_depth": { "default_value": 300 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 1 },
|
"machine_extruder_count": { "default_value": 1 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 293 },
|
"machine_height": { "default_value": 293 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"machine_depth": { "default_value": 300 },
|
"machine_depth": { "default_value": 300 },
|
||||||
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
"machine_end_gcode": { "default_value": "G91\nG1 Z+0.5 E-16 Y+10 F9000\nG90\nM107\nM107 P1\nM104 S0\nM140 S0\nM117\nM605 S0\nG28 X0 Y0\nM84" },
|
||||||
"machine_extruder_count": { "default_value": 1 },
|
"machine_extruder_count": { "default_value": 1 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_heated_bed": { "default_value": true },
|
"machine_heated_bed": { "default_value": true },
|
||||||
"machine_height": { "default_value": 293 },
|
"machine_height": { "default_value": 293 },
|
||||||
"machine_max_feedrate_e": { "value": 150 },
|
"machine_max_feedrate_e": { "value": 150 },
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
"meshfix_maximum_resolution": { "value": "0.25" },
|
"meshfix_maximum_resolution": { "value": "0.25" },
|
||||||
"meshfix_maximum_travel_resolution": { "value": "meshfix_maximum_resolution" },
|
"meshfix_maximum_travel_resolution": { "value": "meshfix_maximum_resolution" },
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": true },
|
"optimize_wall_printing_order": { "value": true },
|
||||||
"retraction_amount": { "value": 2 },
|
"retraction_amount": { "value": 2 },
|
||||||
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'infill'" },
|
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'infill'" },
|
||||||
|
@ -156,7 +156,6 @@
|
||||||
"support_interface_height": { "value": "layer_height * 4" },
|
"support_interface_height": { "value": "layer_height * 4" },
|
||||||
"support_interface_pattern": { "value": "'grid'" },
|
"support_interface_pattern": { "value": "'grid'" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
|
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
"machine_depth": { "default_value": 300 },
|
"machine_depth": { "default_value": 300 },
|
||||||
"machine_end_gcode": { "default_value": "M104 T0 S0 ;extruder heater off\nM104 T1 S0 ;extruder heater off\nM140 S0 ;heated bed heater off\nG91\nG1 Z1 F420 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+1 E-1 F300 ;move Z up a bit and retract filament even more\nG90 ;absolute positioning\nG1 X0 Y300 F6000 ;move the head out of the way\nM84 ;steppers off" },
|
"machine_end_gcode": { "default_value": "M104 T0 S0 ;extruder heater off\nM104 T1 S0 ;extruder heater off\nM140 S0 ;heated bed heater off\nG91\nG1 Z1 F420 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+1 E-1 F300 ;move Z up a bit and retract filament even more\nG90 ;absolute positioning\nG1 X0 Y300 F6000 ;move the head out of the way\nM84 ;steppers off" },
|
||||||
"machine_extruder_count": { "default_value": 2 },
|
"machine_extruder_count": { "default_value": 2 },
|
||||||
"machine_gcode_flavor": { "default_value": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_head_with_fans_polygon":
|
"machine_head_with_fans_polygon":
|
||||||
{
|
{
|
||||||
"default_value": [
|
"default_value": [
|
||||||
|
@ -221,7 +221,6 @@
|
||||||
"support_offset": { "value": "1.5" },
|
"support_offset": { "value": "1.5" },
|
||||||
"support_pattern": { "default_value": "zigzag" },
|
"support_pattern": { "default_value": "zigzag" },
|
||||||
"support_top_distance": { "value": "support_z_distance" },
|
"support_top_distance": { "value": "support_z_distance" },
|
||||||
"support_use_towers": { "value": "True" },
|
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2.5" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2.5" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
"support_z_distance": { "value": "layer_height" },
|
"support_z_distance": { "value": "layer_height" },
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
"machine_center_is_zero": { "default_value": true },
|
"machine_center_is_zero": { "default_value": true },
|
||||||
"machine_depth": { "default_value": 270 },
|
"machine_depth": { "default_value": 270 },
|
||||||
"machine_end_gcode": { "default_value": ";MACHINE END CODE\nG91 ;relative positioning\nG1 E-1 F300 ;retract filament release pressure\nG1 Z+1.0 E-5 F9000 ;move up a and retract more\nG90 ;absolute positioning\nG28; home\nM84 ;steppers off\n;MACHINE END CODE" },
|
"machine_end_gcode": { "default_value": ";MACHINE END CODE\nG91 ;relative positioning\nG1 E-1 F300 ;retract filament release pressure\nG1 Z+1.0 E-5 F9000 ;move up a and retract more\nG90 ;absolute positioning\nG28; home\nM84 ;steppers off\n;MACHINE END CODE" },
|
||||||
"machine_gcode_flavor": { "RepRap (Marlin/Sprinter)": "Marlin" },
|
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
|
||||||
"machine_head_with_fans_polygon":
|
"machine_head_with_fans_polygon":
|
||||||
{
|
{
|
||||||
"default_value": [
|
"default_value": [
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
"meshfix_maximum_resolution": { "value": "0.25" },
|
"meshfix_maximum_resolution": { "value": "0.25" },
|
||||||
"meshfix_maximum_travel_resolution": { "value": "meshfix_maximum_resolution" },
|
"meshfix_maximum_travel_resolution": { "value": "meshfix_maximum_resolution" },
|
||||||
"minimum_interface_area": { "value": 10 },
|
"minimum_interface_area": { "value": 10 },
|
||||||
"minimum_support_area": { "value": 2 },
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
"optimize_wall_printing_order": { "value": "True" },
|
"optimize_wall_printing_order": { "value": "True" },
|
||||||
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'noskin'" },
|
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'noskin'" },
|
||||||
"retraction_combing_max_distance": { "value": 30 },
|
"retraction_combing_max_distance": { "value": 30 },
|
||||||
|
@ -110,7 +110,6 @@
|
||||||
"support_interface_pattern": { "value": "'grid'" },
|
"support_interface_pattern": { "value": "'grid'" },
|
||||||
"support_interface_skip_height": { "value": 0.2 },
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
"support_pattern": { "value": "'zigzag'" },
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
"support_use_towers": { "value": false },
|
|
||||||
"support_wall_count": { "value": 1 },
|
"support_wall_count": { "value": 1 },
|
||||||
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
|
|
116
resources/definitions/blocks_base.def.json
Normal file
116
resources/definitions/blocks_base.def.json
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"name": "Blocks Base Printer",
|
||||||
|
"inherits": "fdmprinter",
|
||||||
|
"metadata":
|
||||||
|
{
|
||||||
|
"visible": false,
|
||||||
|
"author": "Blocks Dev Team",
|
||||||
|
"manufacturer": "Blocks",
|
||||||
|
"file_formats": "text/x-gcode",
|
||||||
|
"first_start_actions": [ "MachineSettingsAction" ],
|
||||||
|
"has_machine_quality": true,
|
||||||
|
"has_materials": true,
|
||||||
|
"has_variants": true,
|
||||||
|
"preferred_material": "generic_pla",
|
||||||
|
"preferred_quality_type": "normal",
|
||||||
|
"preferred_variant_name": "0.4mm Nozzle",
|
||||||
|
"variants_name": "Nozzle Size"
|
||||||
|
},
|
||||||
|
"overrides":
|
||||||
|
{
|
||||||
|
"acceleration_print": { "value": 500 },
|
||||||
|
"acceleration_travel": { "value": 500 },
|
||||||
|
"acceleration_travel_layer_0": { "value": "acceleration_travel" },
|
||||||
|
"adaptive_layer_height_variation": { "value": 0.04 },
|
||||||
|
"adaptive_layer_height_variation_step": { "value": 0.04 },
|
||||||
|
"adhesion_type": { "value": "'skirt'" },
|
||||||
|
"alternate_extra_perimeter": { "default_value": true },
|
||||||
|
"bottom_layers": { "value": "math.ceil(round(bottom_thickness / resolveOrValue('layer_height'), 4))" },
|
||||||
|
"brim_replaces_support": { "value": false },
|
||||||
|
"cool_fan_full_at_height": { "value": "layer_height_0 + 2 * layer_height" },
|
||||||
|
"cool_min_layer_time": { "value": 10 },
|
||||||
|
"infill_before_walls": { "value": false },
|
||||||
|
"infill_enable_travel_optimization": { "default_value": true },
|
||||||
|
"infill_overlap": { "value": 30.0 },
|
||||||
|
"infill_pattern": { "value": "'lines' if infill_sparse_density > 50 else 'cubic'" },
|
||||||
|
"infill_wipe_dist": { "value": 0.0 },
|
||||||
|
"jerk_print": { "value": 8 },
|
||||||
|
"jerk_travel": { "value": "jerk_print" },
|
||||||
|
"jerk_travel_layer_0": { "value": "jerk_travel" },
|
||||||
|
"machine_acceleration": { "value": 500 },
|
||||||
|
"machine_heated_bed": { "default_value": true },
|
||||||
|
"machine_max_acceleration_e": { "value": 5000 },
|
||||||
|
"machine_max_acceleration_x": { "value": 500 },
|
||||||
|
"machine_max_acceleration_y": { "value": 500 },
|
||||||
|
"machine_max_feedrate_e": { "value": 50 },
|
||||||
|
"machine_max_feedrate_x": { "value": 500 },
|
||||||
|
"machine_max_feedrate_y": { "value": 500 },
|
||||||
|
"machine_max_feedrate_z": { "value": 10 },
|
||||||
|
"machine_max_jerk_xy": { "value": 10 },
|
||||||
|
"material_diameter": { "default_value": 1.75 },
|
||||||
|
"material_final_print_temperature": { "value": "material_print_temperature" },
|
||||||
|
"material_initial_print_temperature": { "value": "material_print_temperature" },
|
||||||
|
"meshfix_maximum_resolution": { "value": "0.01" },
|
||||||
|
"meshfix_maximum_travel_resolution": { "value": "meshfix_maximum_resolution" },
|
||||||
|
"minimum_interface_area": { "value": 10 },
|
||||||
|
"minimum_polygon_circumference": { "default_value": 0.2 },
|
||||||
|
"minimum_support_area": { "value": "2 if support_structure == 'normal' else 0" },
|
||||||
|
"optimize_wall_printing_order": { "value": "True" },
|
||||||
|
"retraction_combing": { "value": "'off' if retraction_hop_enabled else 'noskin'" },
|
||||||
|
"retraction_combing_max_distance": { "value": 30 },
|
||||||
|
"retraction_count_max": { "value": 100 },
|
||||||
|
"retraction_hop": { "value": 0.2 },
|
||||||
|
"retraction_hop_enabled": { "value": "False" },
|
||||||
|
"retraction_prime_speed":
|
||||||
|
{
|
||||||
|
"maximum_value": 200,
|
||||||
|
"value": 20
|
||||||
|
},
|
||||||
|
"retraction_retract_speed":
|
||||||
|
{
|
||||||
|
"maximum_value_warning": 130,
|
||||||
|
"value": 200
|
||||||
|
},
|
||||||
|
"retraction_speed":
|
||||||
|
{
|
||||||
|
"maximum_value": 200,
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
"roofing_layer_count": { "value": 1 },
|
||||||
|
"skin_monotonic": { "value": true },
|
||||||
|
"skin_overlap": { "value": 10.0 },
|
||||||
|
"skirt_gap": { "value": 10.0 },
|
||||||
|
"skirt_line_count": { "value": 3 },
|
||||||
|
"speed_layer_0": { "value": 20.0 },
|
||||||
|
"speed_prime_tower": { "value": "speed_topbottom" },
|
||||||
|
"speed_support": { "value": "speed_wall_0" },
|
||||||
|
"speed_support_interface": { "value": "speed_topbottom" },
|
||||||
|
"speed_travel": { "value": "150.0 if speed_print < 60 else 250.0 if speed_print > 100 else speed_print * 2.5" },
|
||||||
|
"speed_travel_layer_0": { "value": "100 if speed_layer_0 < 20 else 150 if speed_layer_0 > 30 else speed_layer_0 * 5" },
|
||||||
|
"speed_z_hop": { "value": 5 },
|
||||||
|
"support_angle": { "value": "math.floor(math.degrees(math.atan(line_width/2.0/layer_height)))" },
|
||||||
|
"support_brim_enable": { "value": true },
|
||||||
|
"support_brim_width": { "value": 4 },
|
||||||
|
"support_infill_rate": { "value": "0 if support_enable and support_structure == 'tree' else 20" },
|
||||||
|
"support_interface_density": { "value": 33.333 },
|
||||||
|
"support_interface_enable": { "value": true },
|
||||||
|
"support_interface_height": { "value": "layer_height * 4" },
|
||||||
|
"support_interface_pattern": { "value": "'grid'" },
|
||||||
|
"support_interface_skip_height": { "value": 0.2 },
|
||||||
|
"support_pattern": { "value": "'zigzag'" },
|
||||||
|
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
|
||||||
|
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
|
||||||
|
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
|
||||||
|
"support_z_distance": { "value": "layer_height if layer_height >= 0.16 else layer_height * 2" },
|
||||||
|
"top_layers": { "value": "math.ceil(round(top_thickness / resolveOrValue('layer_height'), 4))" },
|
||||||
|
"travel_avoid_supports": { "value": true },
|
||||||
|
"travel_retract_before_outer_wall": { "value": true },
|
||||||
|
"wall_0_wipe_dist": { "value": 0.0 },
|
||||||
|
"wall_overhang_angle": { "default_value": 75 },
|
||||||
|
"wall_overhang_speed_factor": { "default_value": 50 },
|
||||||
|
"wall_thickness": { "value": "line_width * 2" },
|
||||||
|
"z_seam_corner": { "value": "'z_seam_corner_weighted'" },
|
||||||
|
"z_seam_type": { "value": "'back'" }
|
||||||
|
}
|
||||||
|
}
|
22
resources/definitions/blocks_mkii.def.json
Normal file
22
resources/definitions/blocks_mkii.def.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"name": "Blocks One MKII",
|
||||||
|
"inherits": "blocks_base",
|
||||||
|
"metadata":
|
||||||
|
{
|
||||||
|
"visible": true,
|
||||||
|
"platform": "blocks_mk2_platform.stl",
|
||||||
|
"machine_extruder_trains": { "0": "blocks_mkii_extruder_0" },
|
||||||
|
"quality_definition": "blocks_base"
|
||||||
|
},
|
||||||
|
"overrides":
|
||||||
|
{
|
||||||
|
"machine_depth": { "default_value": 210 },
|
||||||
|
"machine_end_gcode": { "default_value": "M104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F6000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning\n" },
|
||||||
|
"machine_height": { "default_value": 210 },
|
||||||
|
"machine_name": { "default_value": "Blocks One MKII" },
|
||||||
|
"machine_start_gcode": { "default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG29\nG1 X-14 Y0 F6000\nG1 Z0.1\nG92 E0 ;zero the extruded length\nG1 F2000 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 Z0.2 F6000\nG1 F6000\nM117 Printing...\n" },
|
||||||
|
"machine_width": { "default_value": 200 },
|
||||||
|
"retraction_retract_speed": { "value": 50 }
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue