Skip to content

Commit cf4add2

Browse files
committed
Updated install script and README with new build setup
1 parent dc84c8c commit cf4add2

File tree

2 files changed

+6
-36
lines changed

2 files changed

+6
-36
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Spoolman includes a web-client that lets you directly manipulate all the data. I
2929
_The web client is translated by the community using [Weblate](https://hosted.weblate.org/projects/spoolman/)._
3030

3131
## Integration status
32-
Spoolman is still relatively new, so support isn't widespread yet, but it's being actively integrated to multiple different projects.
32+
Spoolman doesn't depend on any specific printer software, but to make the most out of it, you should use it together with a frontend that supports it.
33+
It is currently only supported in the Klipper ecosystem, with official support for the major frontends. Support for other ecosystems like Octoprint is ongoing.
3334

3435
* ✔️ Moonraker - See the [Moonraker Documentation](https://moonraker.readthedocs.io/en/latest/configuration/#spoolman)
3536
* ✔️ Fluidd
@@ -52,8 +53,8 @@ Copy-paste the entire below command and run it on your machine to install Spoolm
5253
sudo apt-get update && \
5354
sudo apt-get install -y curl jq && \
5455
mkdir -p ./Spoolman && \
55-
source_url=$(curl -s https://api.github.com/repos/Donkie/Spoolman/releases/latest | jq -r ".tarball_url") && \
56-
curl -sSL $source_url | tar -xz --strip-components=1 -C ./Spoolman && \
56+
source_url=$(curl -s https://api.github.com/repos/Donkie/Spoolman/releases/latest | jq -r '.assets[] | select(.name == "spoolman.zip").browser_download_url') && \
57+
curl -sSL $source_url -o temp.zip && unzip temp.zip -d ./Spoolman && rm temp.zip && \
5758
cd ./Spoolman && \
5859
bash ./scripts/install_debian.sh
5960
```
@@ -72,8 +73,8 @@ systemctl --user disable Spoolman
7273
# Download and install the new version
7374
mv Spoolman Spoolman_old && \
7475
mkdir -p ./Spoolman && \
75-
source_url=$(curl -s https://api.github.com/repos/Donkie/Spoolman/releases/latest | jq -r ".tarball_url") && \
76-
curl -sSL $source_url | tar -xz --strip-components=1 -C ./Spoolman && \
76+
source_url=$(curl -s https://api.github.com/repos/Donkie/Spoolman/releases/latest | jq -r '.assets[] | select(.name == "spoolman.zip").browser_download_url') && \
77+
curl -sSL $source_url -o temp.zip && unzip temp.zip -d ./Spoolman && rm temp.zip && \
7778
cp Spoolman_old/.env Spoolman/.env && \
7879
cd ./Spoolman && \
7980
bash ./scripts/install_debian.sh && \

scripts/install_debian.sh

-31
Original file line numberDiff line numberDiff line change
@@ -148,37 +148,6 @@ echo -e "${GREEN}Installing Spoolman backend and its dependencies using PDM...${
148148
pdm config venv.backend venv || exit 1
149149
pdm sync --prod --no-editable || exit 1
150150

151-
# Get version number from pyproject.toml
152-
spoolman_version=$(grep "^version = " pyproject.toml | awk '{print $3}' | sed 's/"//g')
153-
154-
# Check if a client has already been downloaded for this version
155-
download_client=1
156-
if [ -f "client/dist/version.txt" ]; then
157-
client_version=$(cat client/dist/version.txt)
158-
if [ "$client_version" != "$spoolman_version" ]; then
159-
# Client version is different, delete the client folder
160-
echo -e "${ORANGE}Spoolman web client version (v$client_version) is different from server version (v$spoolman_version). Deleting old client...${NC}"
161-
rm -rf client/dist
162-
else
163-
# Client version is the same, no need to download it again
164-
echo -e "${GREEN}Spoolman web client is up to date (v$client_version)${NC}"
165-
download_client=0
166-
fi
167-
fi
168-
169-
# Download appropriate client for this version
170-
if [ "$download_client" -eq 1 ]; then
171-
url="https://github.com/Donkie/Spoolman/releases/download/v$spoolman_version/spoolman-client.zip"
172-
echo -e "${GREEN}Downloading Spoolman web client v$spoolman_version...${NC}"
173-
# Download and unzip silently
174-
curl -sL "$url" -o spoolman-client.zip || exit 1
175-
unzip -q -o spoolman-client.zip -d client/dist/ || exit 1
176-
rm spoolman-client.zip
177-
178-
# Write a file to the client/dist/ folder to indicate which version of the client this is
179-
echo "$spoolman_version" > client/dist/version.txt
180-
fi
181-
182151
#
183152
# Initialize the .env file if it doesn't exist
184153
#

0 commit comments

Comments
 (0)