Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
65 changes: 54 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,32 @@ env:

jobs:
build:
name: build (${{ matrix.name }})
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
name: windows-x64
target: x86_64-pc-windows-msvc
- os: windows-latest
name: windows-x86
target: i686-pc-windows-msvc
# Built on the oldest supported release so the binary also runs on
# Ubuntu 22.04+ and Debian 12+.
- os: ubuntu-22.04
name: linux-x64
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}

# A release tag must name the version the binaries report.
- name: Tag matches version
Expand All @@ -43,26 +52,59 @@ jobs:
- name: Format
run: cargo fmt --all -- --check
- name: Lint
run: cargo clippy --release --all-targets -- -D warnings
run: cargo clippy --release --all-targets --target ${{ matrix.target }} -- -D warnings
- name: Test
run: cargo test --release

- name: Package (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: ./scripts/package-windows.ps1
- name: Package (Debian)
if: runner.os == 'Linux'
run: ./scripts/package-deb.sh
run: cargo test --release --target ${{ matrix.target }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Binary reports the right version
shell: bash
run: |
version=$(grep -m1 '^version = ' Cargo.toml | cut -d'"' -f2)
out=$(./target/release/sscan --version)
out=$(./target/${{ matrix.target }}/release/sscan --version)
echo "$out"
[ "$out" = "sscan $version" ]

# --- Windows code signing (SignPath Foundation) ------------------------
# Runs for release tags once the repository has been given its SignPath
# organisation id (Actions variable) and API token (Actions secret).
# Until then releases are built exactly the same way, unsigned.
- name: Upload unsigned binaries for signing
id: unsigned
if: runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/v') && vars.SIGNPATH_ORGANIZATION_ID != ''
uses: actions/upload-artifact@v4
with:
name: unsigned-${{ matrix.name }}
path: |
target/${{ matrix.target }}/release/spacescope.exe
target/${{ matrix.target }}/release/sscan.exe
if-no-files-found: error
- name: Sign with SignPath
if: steps.unsigned.outcome == 'success'
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }}
project-slug: ${{ vars.SIGNPATH_PROJECT_SLUG || 'spacescope' }}
signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG || 'release-signing' }}
artifact-configuration-slug: ${{ vars.SIGNPATH_ARTIFACT_CONFIGURATION_SLUG || 'windows-binaries' }}
github-artifact-id: ${{ steps.unsigned.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: signed

- name: Package (Windows, signed)
if: runner.os == 'Windows' && steps.unsigned.outcome == 'success'
shell: pwsh
run: ./scripts/package-windows.ps1 -Name ${{ matrix.name }} -ExeDir signed
- name: Package (Windows)
if: runner.os == 'Windows' && steps.unsigned.outcome != 'success'
shell: pwsh
run: ./scripts/package-windows.ps1 -Name ${{ matrix.name }} -ExeDir target/${{ matrix.target }}/release
- name: Package (Debian)
if: runner.os == 'Linux'
run: ./scripts/package-deb.sh ${{ matrix.target }}

- uses: actions/upload-artifact@v4
with:
name: spacescope-${{ matrix.name }}
Expand All @@ -82,6 +124,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: spacescope-*
merge-multiple: true
- name: Publish release
env:
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ by setting `version` in `Cargo.toml`, adding a section here, and pushing a
matching `vX.Y.Z` tag; CI checks the three agree, builds both platforms and
publishes the release.

## 1.2.0

- A 32-bit Windows build (`SpaceScope-windows-x86.zip`) alongside the 64-bit
one.
- The window opens maximised. `F11` toggles full screen.
- Release builds are prepared for code signing through the SignPath
Foundation; this version itself is still unsigned.
- The website has a privacy policy and a code signing policy.

## 1.1.1

- Licence changed from MIT to the Apache License 2.0, which adds an explicit
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["crates/core", "crates/app"]

[workspace.package]
version = "1.1.1"
version = "1.2.0"
edition = "2021"
license = "Apache-2.0"
authors = ["SkippyNet"]
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ treemap), so the biggest things are the biggest shapes.

Downloads are on the [releases page](https://github.com/SkippyNet/spacescope/releases/latest); there is also a [project page](https://skippynet.github.io/spacescope/).

**Windows:** unzip `SpaceScope-windows-x64.zip` and run `spacescope.exe`. Nothing to install, no administrator rights needed. For the fast drive scan choose **More → Restart as administrator**.
**Windows:** unzip `SpaceScope-windows-x64.zip` (or `SpaceScope-windows-x86.zip` on 32-bit Windows) and run `spacescope.exe`. The window opens maximised; `F11` switches to full screen. Nothing to install, no administrator rights needed. For the fast drive scan choose **More → Restart as administrator**.

**Debian / Ubuntu** (22.04+ / Debian 12+):

Expand Down Expand Up @@ -70,6 +70,7 @@ Build the `.deb` on the oldest release you want to support (CI uses Ubuntu 22.04
| More / less detail | `+` / `−` buttons | `+` / `-` |
| Filter | | `Ctrl+F`, `Esc` clears |
| Rescan the current folder | refresh button | `F5` |
| Full screen | | `F11` |

You can also start a scan directly: `spacescope C:\Users\me`, or drop a folder onto the window.

Expand Down Expand Up @@ -166,6 +167,24 @@ any one product; SpaceScope has not been benchmarked head-to-head against
other tools. What other tools have that SpaceScope does not (yet): colour
tags on files and customisable export templates.

## Code signing policy

SpaceScope uses the SignPath Foundation for code signing of its Windows
programs. Free code signing is provided by [SignPath.io](https://about.signpath.io/),
with a certificate by the [SignPath Foundation](https://signpath.org/).

- **What gets signed:** only files built by the public GitHub Actions
workflow from a tagged commit of this repository. Nothing built on a
personal computer is signed. Versions up to 1.2.0 predate signing and are
unsigned.
- **Committers, reviewers and approvers:** the repository owner,
[SkippyNet](https://github.com/SkippyNet). Every change reaches `main`
through a pull request that must pass the build on all platforms.
- **Privacy:** this program will not transfer any information to other
networked systems unless specifically requested by the user or the person
installing or operating it. See the
[privacy policy](https://skippynet.github.io/spacescope/privacy.html).

## Licence

Copyright 2026 SkippyNet. Licensed under the
Expand Down
11 changes: 11 additions & 0 deletions crates/app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ impl App {
args,
};
app.refresh_drives(ctx);
// Fill the screen on start. The builder flag alone is not honoured on
// every platform once an explicit size is also given.
if app.args.size.is_none() {
ctx.send_viewport_cmd(egui::ViewportCommand::Maximized(true));
}
if let Some(path) = app.args.path.clone() {
app.start_scan(ctx, &path);
}
Expand Down Expand Up @@ -1935,6 +1940,12 @@ impl eframe::App for App {
self.test_hooks(ctx);
self.poll_background(ctx);

// F11 toggles true full screen (no title bar or taskbar).
if ctx.input(|i| i.key_pressed(Key::F11)) {
let on = ctx.input(|i| i.viewport().fullscreen.unwrap_or(false));
ctx.send_viewport_cmd(egui::ViewportCommand::Fullscreen(!on));
}

let dropped = ctx.input(|i| i.raw.dropped_files.iter().find_map(|f| f.path.clone()));
if let Some(p) = dropped {
let dir = if p.is_dir() {
Expand Down
6 changes: 4 additions & 2 deletions crates/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ fn run(args: app::Args, glow: bool) -> eframe::Result {
.with_app_id("spacescope")
.with_inner_size([w, h])
.with_min_inner_size([680.0, 440.0])
// Open filling the screen; the size above is what "restore" returns to.
.with_maximized(args.size.is_none())
.with_icon(icon);
let mut options = eframe::NativeOptions {
viewport,
Expand All @@ -35,8 +37,8 @@ fn run(args: app::Args, glow: bool) -> eframe::Result {
} else {
eframe::Renderer::Wgpu
},
// Test runs must not inherit or disturb the saved window geometry.
persist_window: args.screenshot.is_none() && args.script.is_none() && args.size.is_none(),
// Always start maximised rather than restoring an old window size.
persist_window: false,
..Default::default()
};
// A disk tool has no business waking the discrete GPU.
Expand Down
30 changes: 25 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ <h1>See what is filling your disk</h1>
<div>
<p class="lede">SpaceScope scans a drive or folder and draws every file as a rectangle sized by the space it takes. The biggest things are the biggest shapes.</p>
<div class="actions">
<a class="btn" id="dl-win" href="https://github.com/SkippyNet/spacescope/releases/latest/download/SpaceScope-windows-x64.zip">Download for Windows<small>zip, no install needed</small></a>
<a class="btn" id="dl-win" href="https://github.com/SkippyNet/spacescope/releases/latest/download/SpaceScope-windows-x64.zip">Download for Windows<small>64-bit zip, no install needed</small></a>
<a class="btn" id="dl-linux" href="https://github.com/SkippyNet/spacescope/releases/latest/download/spacescope-amd64.deb">Download for Linux<small>.deb for Debian and Ubuntu</small></a>
</div>
<p class="ver" id="latest-line">Free. No sign-up, no installer on Windows.</p>
<p class="ver"><span id="latest-line">Free. No sign-up, no installer on Windows.</span> On an older PC, get the <a href="https://github.com/SkippyNet/spacescope/releases/latest/download/SpaceScope-windows-x86.zip">32-bit Windows version</a>.</p>
</div>
</div>
<div class="tile t-speed">
Expand Down Expand Up @@ -288,7 +288,7 @@ <h2>Install</h2>
<div class="install">
<div>
<h3>Windows</h3>
<p>Unzip and run <strong>spacescope.exe</strong>. To use the fast drive scan, choose More, then Restart as administrator.</p>
<p>Unzip and run <strong>spacescope.exe</strong>. Almost every PC wants the 64-bit download; the 32-bit one is for 32-bit Windows. To use the fast drive scan, choose More, then Restart as administrator.</p>
<pre>spacescope.exe C:\Users\me</pre>
</div>
<div>
Expand All @@ -300,6 +300,25 @@ <h3>Debian and Ubuntu</h3>
</div>
</section>

<section id="signing">
<h2>Code signing</h2>
<p class="intro">SpaceScope uses the SignPath Foundation for code signing of its Windows programs. Free code signing is provided by <a href="https://about.signpath.io/">SignPath.io</a>, with a certificate by the <a href="https://signpath.org/">SignPath Foundation</a>.</p>
<div class="cols">
<div>
<h3>What gets signed</h3>
<p>Only files built by the public GitHub Actions workflow from a tagged commit of this repository. Nothing built on a personal computer is ever signed. Versions up to 1.2.0 were published before signing was set up and are unsigned.</p>
</div>
<div>
<h3>Who decides</h3>
<p>Committers, reviewers and approvers: the repository owner, <a href="https://github.com/SkippyNet">SkippyNet</a>. Every change reaches the main branch through a pull request that must pass the build on all platforms.</p>
</div>
<div>
<h3>Your privacy</h3>
<p>This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. See the <a href="privacy.html">privacy policy</a>.</p>
</div>
</div>
</section>

<section id="releases">
<h2>Releases</h2>
<p class="intro" id="rel-summary">Every version, newest first, with what changed and its downloads.</p>
Expand All @@ -310,7 +329,7 @@ <h2>Releases</h2>
</main>

<footer>
SpaceScope is free software under the <a href="https://github.com/SkippyNet/spacescope/blob/main/LICENSE">Apache License 2.0</a>: use it, change it and share it, with no warranty. <a href="https://github.com/SkippyNet/spacescope/issues">Report a problem</a>.
SpaceScope is free software under the <a href="https://github.com/SkippyNet/spacescope/blob/main/LICENSE">Apache License 2.0</a>: use it, change it and share it, with no warranty. <a href="privacy.html">Privacy policy</a>. <a href="#signing">Code signing policy</a>. <a href="https://github.com/SkippyNet/spacescope/issues">Report a problem</a>.
</footer>
</div>
<script>
Expand All @@ -325,7 +344,8 @@ <h2>Releases</h2>

function size(n) { return n > 1048576 ? (n / 1048576).toFixed(1) + " MB" : Math.round(n / 1024) + " KB"; }
function label(name) {
if (/\.zip$/i.test(name)) return "Windows (zip)";
if (/x86\.zip$/i.test(name)) return "Windows 32-bit (zip)";
if (/\.zip$/i.test(name)) return "Windows 64-bit (zip)";
if (/\.deb$/i.test(name)) return "Debian and Ubuntu (.deb)";
return name;
}
Expand Down
50 changes: 50 additions & 0 deletions docs/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SpaceScope privacy policy</title>
<meta name="description" content="SpaceScope collects no data. What the program and this website do and do not send over the network.">
<link rel="canonical" href="https://skippynet.github.io/spacescope/privacy.html">
<link rel="icon" href="icon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap" rel="stylesheet">
<style>
body { margin: 0; background: #e9ecf1; color: #12151c; font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif; }
main { max-width: 68ch; margin: 0 auto; padding: 28px 20px 72px; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #12151c; outline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
h1 { font-weight: 800; font-stretch: 72%; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; margin: 44px 0 10px; }
h2 { font-size: 1.25rem; margin: 34px 0 6px; }
.when { color: #4a5263; margin: 0 0 8px; }
p, li { max-width: 68ch; }
</style>
</head>
<body>
<main>
<a class="brand" href="./"><img src="icon.png" alt="">SpaceScope</a>
<h1>Privacy policy</h1>
<p class="when">Last updated 13 November 2026.</p>

<h2>The program</h2>
<p>SpaceScope collects nothing. It has no accounts, no telemetry, no analytics, no crash reporting and no update check. It makes no network connections of its own.</p>
<p>This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.</p>
<p>What it reads stays on your computer: the names, sizes and dates of the files in the folder you ask it to scan, held in memory while the window is open. A CSV export is written only where you choose to save it. Its only saved setting file holds your preferences (theme, detail level and similar), in your user profile.</p>

<h2>This website</h2>
<p>The site is static pages hosted by GitHub Pages and sets no cookies. Loading it makes requests to three other services, each of which sees your IP address as any web server does:</p>
<ul>
<li>GitHub Pages, which serves the pages (<a href="https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement">GitHub's privacy statement</a>).</li>
<li>The GitHub API, asked once per visit for the public list of releases shown on the home page.</li>
<li>Google Fonts, which serves the typeface (<a href="https://developers.google.com/fonts/faq/privacy">Google Fonts privacy FAQ</a>).</li>
</ul>
<p>Downloads are served by GitHub. The download counts shown are the public totals GitHub reports; nothing identifies who downloaded.</p>

<h2>Questions</h2>
<p>Open an issue at <a href="https://github.com/SkippyNet/spacescope/issues">github.com/SkippyNet/spacescope</a>.</p>
</main>
</body>
</html>
1 change: 1 addition & 0 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://skippynet.github.io/spacescope/</loc><changefreq>weekly</changefreq></url>
<url><loc>https://skippynet.github.io/spacescope/privacy.html</loc></url>
</urlset>
11 changes: 9 additions & 2 deletions scripts/package-deb.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#!/usr/bin/env bash
# Builds dist/spacescope-amd64.deb.
# $1 optional Rust target triple the binaries were built for
# For a package that also installs on older releases, run this on the oldest
# distribution you want to support (CI uses Ubuntu 22.04).
set -euo pipefail
cd "$(dirname "$0")/.."
command -v cargo-deb >/dev/null || cargo install cargo-deb --locked
cargo build --release
target="${1:-}"
mkdir -p dist
rm -f dist/*.deb
cargo deb -p spacescope --no-build --output dist/spacescope-amd64.deb
if [ -n "$target" ]; then
cargo build --release --target "$target"
cargo deb -p spacescope --no-build --target "$target" --output dist/spacescope-amd64.deb
else
cargo build --release
cargo deb -p spacescope --no-build --output dist/spacescope-amd64.deb
fi
ls -lh dist/*.deb
Loading
Loading