diff --git a/.gitignore b/.gitignore index a4cb47a..a3d8476 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ go.work.sum .vscode/ *.AppImage squashfs-root/ -/lychee-slicer* \ No newline at end of file +/lychee-slicer* +build/ \ No newline at end of file diff --git a/README.md b/README.md index 5c8cde8..c68770e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,38 @@ -# lychee-slicer +# lychee slicer plus crack -Lychee Slicer \ No newline at end of file +unlocks all plus features that don't require a cloud connection + +# Installation + +## Windows + +1. Install [Lychee Slicer](https://mango3d.io/download-lychee-slicer) to the **DEFAULT** location (important if you don't want to manually specify the path later) +2. Download the latest release from the [releases page](https://vaclive.party/software/lychee-slicer/releases/latest). (look for lychee-slicer.exe) +3. (Optional) verify the downloaded files using PGP +4. run the downloaded launcher +5. (On first setup and after update) you might need to grant the launcher permission patch files in the Lychee Slicer installation directory +6. The program will start automatically after patching, login as usual if you haven't already +7. From now on, you have to use the launcher to start Lychee Slicer. Opening the original executable will not work. (I suggest making a shortcut to the launcher) + +### custom installation path + +specify the path on the command line in the `-program` argument like this: `lychee-slicer-launcher-windows.exe -program "C:\path\to\LycheeSlicer.exe"` + +## Linux + +### Arch Linux + +1. build or download the package from [here](https://vaclive.party/arch/lychee-slicer-patched) + +### Other distributions + +1. Download and extract the latest lychee slicer release. (you should have a directory with the lycheeslicer executable) +2. Download the latest release from the [releases page](https://vaclive.party/software/lychee-slicer/releases/latest). (look for lychee-slicer) +3. (Optional) verify the downloaded files using PGP +4. give the launcher execute permissions (`chmod +x lychee-slicer-launcher-linux`) +5. run `./lychee-slicer-launcher-linux -program /path/to/lycheeslicer` to patch and start the lychee slicer + +## macOS + +1. throw the computer out of the window +2. buy a real computer \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..6220960 --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +mkdir -p build +GOOS=windows GOARCH=amd64 go build -ldflags "-H=windowsgui -s -w" -o build/lychee-slicer-launcher-windows.exe +GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o build/lychee-slicer-launcher-linux + +gpg --output build/lychee-slicer-launcher-windows.exe.sig --detach-sig build/lychee-slicer-launcher-windows.exe +gpg --output build/lychee-slicer-launcher-linux.sig --detach-sig build/lychee-slicer-launcher-linux \ No newline at end of file diff --git a/main.go b/main.go index ce16af6..2507d75 100644 --- a/main.go +++ b/main.go @@ -170,6 +170,7 @@ func main() { go func() { cmd := exec.Command(*program, fmt.Sprintf("--proxy-server=%s:%d", ip, port), "--ignore-certificate-errors") + cmd.Args = append(cmd.Args, flag.Args()...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr log.Fatal(cmd.Run())