Skip to content

Commit

Permalink
(orcaslicer.install) new package
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevenaar committed Jan 31, 2025
1 parent dee95ae commit ee0d35e
Show file tree
Hide file tree
Showing 9 changed files with 893 additions and 1 deletion.
14 changes: 14 additions & 0 deletions automatic/orcaslicer.install/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# <img src="https://cdn.jsdelivr.net/gh/mkevenaar/chocolatey-packages@dee95ae3af5c1e880f28e9901a405c1542509dec/icons/orcaslicer.install.png" width="48" height="48"/> [orcaslicer.install](https://community.chocolatey.org/packages/orcaslicer.install)

## Main features

- Auto calibrations for all printers
- Sandwich(inner-outer-inner) mode - an improved version of the External perimeters first mode
- Precise wall
- Klipper support
- More granular controls
- More features can be found in change notes

**Please Note**: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know [here](https://github.com/mkevenaar/chocolatey-packages/issues) that the package is no longer updating correctly.
661 changes: 661 additions & 0 deletions automatic/orcaslicer.install/legal/LICENSE.txt

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions automatic/orcaslicer.install/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The installer have been downloaded from their official download link listed on <https://github.com/SoftFever/OrcaSlicer/releases/tag/v2.2.0>
and can be verified like this:

1. Download the following installers:
64-Bit: <https://github.com/SoftFever/OrcaSlicer/releases/download/v2.2.0/OrcaSlicer_Windows_Installer_V2.2.0.exe>
2. You can use one of the following methods to obtain the checksum
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'

checksum type: sha256
checksum64: 0EA605C118B6AF648C4B16FB1A7222ED9272F1EB83A7844116552A0FD05820A5

File 'LICENSE.txt' is obtained from <https://github.com/SoftFever/OrcaSlicer/blob/main/LICENSE.txt>
82 changes: 82 additions & 0 deletions automatic/orcaslicer.install/orcaslicer.install.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Read this before creating packages: https://docs.chocolatey.org/en-us/create/create-packages -->
<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://chocolatey.org/packages). -->
<!-- Test your packages in a test environment: https://github.com/chocolatey/chocolatey-test-environment -->

<!--
This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Reference. Chocolatey uses a special version of NuGet.Core that allows us to do more than was initially possible. As such there are certain things to be aware of:
* the package xmlns schema url may cause issues with nuget.exe
* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces
* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements
-->
<!-- You can embed software files directly into packages, as long as you are not bound by distribution rights. -->
<!-- * If you are an organization making private packages, you probably have no issues here -->
<!-- * If you are releasing to the community feed, you need to consider distribution rights. -->
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->

<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<!-- == PACKAGE SPECIFIC SECTION == -->
<!-- This section is about this package, although id and version have ties back to the software -->
<!-- id is lowercase and if you want a good separator for words, use '-', not '.'. Dots are only acceptable as suffixes for certain types of packages, e.g. .install, .portable, .extension, .template -->
<!-- If the software is cross-platform, attempt to use the same id as the debian/rpm package(s) if possible. -->
<id>orcaslicer.install</id>
<!-- version should MATCH as closely as possible with the underlying software -->
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
<version>0.0</version>
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
<owners>Maurice Kevenaar</owners>
<!-- ============================== -->

<!-- == SOFTWARE SPECIFIC SECTION == -->
<!-- This section is about the software itself -->
<title>OrcaSlicer (Install)</title>
<authors>SoftFever</authors>
<!-- projectUrl is required for the community feed -->
<projectUrl>https://github.com/SoftFever/OrcaSlicer</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/mkevenaar/chocolatey-packages@dee95ae3af5c1e880f28e9901a405c1542509dec/icons/orcaslicer.install.png</iconUrl>
<!-- copyright is usually years and software vendor, but not required for internal feeds -->
<copyright>SoftFever</copyright>
<tags>orca slicer 3d bambu lab gcode slicer stl admin</tags>
<releaseNotes>https://github.com/SoftFever/OrcaSlicer/releases/tag/v2.2.0</releaseNotes>
<licenseUrl>https://github.com/SoftFever/OrcaSlicer/blob/main/LICENSE.txt</licenseUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<packageSourceUrl>https://github.com/jtcmedia/chocolatey-packages/tree/master/prusaslicer</packageSourceUrl>
<docsUrl>https://github.com/SoftFever/OrcaSlicer/wiki</docsUrl>
<projectSourceUrl>https://github.com/SoftFever/OrcaSlicer</projectSourceUrl>
<bugTrackerUrl>https://github.com/SoftFever/OrcaSlicer/issues</bugTrackerUrl>
<summary>Orca Slicer is a fork of Bambu Studio. It was previously known as BambuStudio-SoftFever.
Bambu Studio is based on PrusaSlicer by Prusa Research, which is from Slic3r by Alessandro Ranellucci and the RepRap community. Orca Slicer incorporates a lot of features from SuperSlicer</summary>
<description><![CDATA[## Main features
- Auto calibrations for all printers
- Sandwich(inner-outer-inner) mode - an improved version of the External perimeters first mode
- Precise wall
- Klipper support
- More granular controls
- More features can be found in change notes
**Please Note**: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know [here](https://github.com/mkevenaar/chocolatey-packages/issues) that the package is no longer updating correctly.
]]></description>
<!-- =============================== -->

<!-- Specifying dependencies and version ranges? https://docs.nuget.org/create/versioning#specifying-version-ranges-in-.nuspec-files -->
<dependencies>
<dependency id="vcredist140" />
<dependency id="webview2-runtime" />
</dependencies>

<!--<provides>NOT YET IMPLEMENTED</provides>-->
<!--<conflicts>NOT YET IMPLEMENTED</conflicts>-->
<!--<replaces>NOT YET IMPLEMENTED</replaces>-->
</metadata>
<!-- this section controls what actually gets packaged into the Chocolatey package -->
<files>
<file src="legal\**" target="legal" />
<file src="tools\**" target="tools" />
</files>
</package>
15 changes: 15 additions & 0 deletions automatic/orcaslicer.install/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$ErrorActionPreference = 'Stop';

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
packageName = $env:ChocolateyPackageName
file = "$toolsDir\OrcaSlicer_Windows_Installer_V2.2.0.exe"
fileType = 'exe'
softwareName = 'OrcaSlicer*'
silentArgs = "/S"
validExitCodes= @(0,3010)
}

Install-ChocolateyInstallPackage @packageArgs

55 changes: 55 additions & 0 deletions automatic/orcaslicer.install/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Import-Module Chocolatey-AU
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$repoUser = "SoftFever"
$repoName = "OrcaSlicer"

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*file\s*=\s*`"[$]toolsDir\\).*" = "`${1}$($Latest.FileName64)`""
}
"$($Latest.PackageName).nuspec" = @{
"(?i)(^\s*\<releaseNotes\>).*(\<\/releaseNotes\>)" = "`${1}$($Latest.ReleaseNotes)`${2}"
}

".\legal\VERIFICATION.txt" = @{
"(?i)(listed on\s*)\<.*\>" = "`${1}<$($Latest.ReleaseUri)>"
"(?i)(64-Bit.+)\<.*\>" = "`${1}<$($Latest.URL64)>"
"(?i)(checksum type:).*" = "`${1} $($Latest.ChecksumType64)"
"(?i)(checksum64:).*" = "`${1} $($Latest.Checksum64)"
}
}
}

function global:au_BeforeUpdate($Package) {
$licenseData = Get-GithubRepositoryLicense $repoUser $repoName
$licenseFile = "$PSScriptRoot\legal\LICENSE.txt"
if (Test-Path $licenseFile) { Remove-Item -Force $licenseFile }

Invoke-WebRequest -Uri $licenseData.download_url -UseBasicParsing -OutFile "$licenseFile"
$Latest.LicenseUrl = $licenseData.html_url

Get-RemoteFiles -Purge -NoSuffix
}

function global:au_AfterUpdate($Package) {
Update-Metadata -key "licenseUrl" -value $Latest.LicenseUrl
Invoke-VirusTotalScan $Package
}

function global:au_GetLatest {
$release = Get-LatestGithubReleases $repoUser $repoName $true

$version = $release.latest.Version
$url64 = $release.latest.Assets | Where-Object { $_ -match '\.exe$' } | Select-Object -First 1

@{
URL64 = $url64;
Version = $version
ReleaseUri = $release.latest.ReleaseUrl
ReleaseNotes = "https://github.com/SoftFever/OrcaSlicer/releases/tag/v${version}"
}
}

update -ChecksumFor None
2 changes: 2 additions & 0 deletions docs/_data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@
url: /packages/operadeveloper.html
- page: "Orca"
url: /packages/orca.html
- page: "OrcaSlicer (Install)"
url: /packages/orcaslicer.install.html
- page: "OrientDB (Portable)"
url: /packages/orientdb.html
- page: "Plexamp"
Expand Down
46 changes: 46 additions & 0 deletions docs/packages/orcaslicer.install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# <img src="https://cdn.jsdelivr.net/gh/mkevenaar/chocolatey-packages@dee95ae3af5c1e880f28e9901a405c1542509dec/icons/orcaslicer.install.png" width="32" height="32"/> [![OrcaSlicer (Install)](https://img.shields.io/chocolatey/v/orcaslicer.install.svg?label=OrcaSlicer+(Install))](https://community.chocolatey.org/packages/orcaslicer.install) [![OrcaSlicer (Install)](https://img.shields.io/chocolatey/dt/orcaslicer.install.svg)](https://community.chocolatey.org/packages/orcaslicer.install)

## Usage

To install OrcaSlicer (Install), run the following command from the command line or from PowerShell:

```powershell
choco install orcaslicer.install
```

To upgrade OrcaSlicer (Install), run the following command from the command line or from PowerShell:

```powershell
choco upgrade orcaslicer.install
```

To uninstall OrcaSlicer (Install), run the following command from the command line or from PowerShell:

```powershell
choco uninstall orcaslicer.install
```

## Description

## Main features

- Auto calibrations for all printers
- Sandwich(inner-outer-inner) mode - an improved version of the External perimeters first mode
- Precise wall
- Klipper support
- More granular controls
- More features can be found in change notes

**Please Note**: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know [here](https://github.com/mkevenaar/chocolatey-packages/issues) that the package is no longer updating correctly.


## Links

[Chocolatey Package Page](https://community.chocolatey.org/packages/orcaslicer.install)

[Software Site](https://github.com/SoftFever/OrcaSlicer)

[Package Source](https://github.com/jtcmedia/chocolatey-packages/tree/master/prusaslicer)

2 changes: 1 addition & 1 deletion docs/packages/prusaslicer.install.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ let them know [here](https://github.com/mkevenaar/chocolatey-packages/issues) th

[Software Site](https://www.prusa3d.com/slic3r-prusa-edition/)

[Package Source](https://github.com/jtcmedia/chocolatey-packages/tree/master/prusaslicer)
[Package Source](https://github.com/mkevenaar/chocolatey-packages/tree/master/automatic/prusaslicer.install)

0 comments on commit ee0d35e

Please sign in to comment.