#59 - Rollscan installs in one command on Linux and Windows #60
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RollNote/rollscan!60
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/59-install-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On Linux and Windows, Rollscan now installs with one command, and running it again updates it:
curl -fsSL https://scan.roll-note.com/install.sh | shirm https://scan.roll-note.com/install.ps1 | iexThe download page shows the command on each card, and the installation docs and the README explain it. macOS gets nothing yet: there is no Mac build to download, so on a Mac the script says so and points to building from source.
Closes #59
How it works
packaging/install.sh(POSIX sh): on Debian, Ubuntu and their derivatives (apt-getanddpkgpresent) it installs the.deb, which brings gphoto2 and the serial port rule. On any other Linux it puts the AppImage at~/.local/bin/rollscan, adds a menu entry and icon, installs gphoto2 with pacman, dnf, zypper or xbps-install, and installs60-rollscan.rulesfrom the release's tag. It prints every command it runs as root before running it; package managers run non-interactively because the script's stdin is the pipe, and sudo still asks for the password on the terminal. x86_64 only.packaging/windows/install.ps1: downloads the newest-setup.exeto the temp folder and runs it with/S(current user, no admin prompt). If Rollscan is open it stops and asks to quit it, rather than closing it mid-scan. It runs inside a script block, so an error never closes the PowerShell window it was pasted into.site/scripts/sync.mjs). nginx serves them astext/plain, soirmhands PowerShell a string, withno-cache.Tested
install.sh: clean.shas the one-liner does:.debinstalls;rollscanand the udev rule are in place.unamefaked to Darwin: it prints the "no Mac build" message and exits.install.ps1in PowerShell 7 on Linux, with the installer run replaced by a stand-in: finds and downloadsRollscan_0.11.0_x64-setup.exe(15.8 MB), deletes it afterwards, and leaves the shell open.pnpm build,pnpm checkandpnpm lintpass; the download page checked in a browser.Not tested
install.ps1has never run on Windows. The docs, the README and the download page say so.install.shhasn't run on a real desktop with the scanner plugged in. In the bare Arch container the AppImage couldn't start because a system library (libfribidi) was missing; a desktop has it.Changes in behaviour
scan.roll-note.com/install.shandinstall.ps1exist.a51841eda95b37834105View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.