Install with one command (install.sh / install.ps1, checksum-verified); website install section
Browse files- README.md +21 -28
- index.html +37 -62
- install.ps1 +50 -0
- install.sh +90 -0
- site/site.css +19 -0
- site/site.js +22 -40
README.md
CHANGED
|
@@ -164,34 +164,27 @@ The earlier chat assistant and the phone check were removed on 2026-10-14: small
|
|
| 164 |
computers and crashed phones, and the 0.5B chat model did not survive 4-bit rounding. They remain in the Space's git
|
| 165 |
history. `mobile/` stays because the synthetic data generator uses its evidence code.
|
| 166 |
|
| 167 |
-
## Install
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
Changes that need the user (screen lock, FileVault, updates that restart, sharing, Time Machine, accounts) are kind
|
| 189 |
-
`settings`: the app opens the exact System Settings page with the steps. The AI never writes or runs commands.
|
| 190 |
-
**Linux** (`collectors/linux/fix.sh`, through the desktop's pkexec prompt): firewall on with incoming blocked (ufw, or firewalld; SSH allowed first if it runs), automatic security updates (unattended-upgrades via an Arx apt drop-in, or dnf-automatic), network time, guest login off, popularity-contest/whoopsie off, automatic login off (GDM, LightDM, SDDM; edited files are backed up next to the state file), and ClamAV definition updates (offered only where ClamAV runs: `requires` in `fixes.json`). Tested in Ubuntu 24.04 containers: fix, re-audit and undo restore every file and service; the packaged app runs headless with `xvfb-run`.
|
| 191 |
-
Test without changing anything: `DEVSEIS_SMOKE=<folder> DEVSEIS_FIX_DRY=1 app/node_modules/.bin/electron app`.
|
| 192 |
-
|
| 193 |
-
**Model per build** (`app/model-version.json`): `version` (v0.3) for the full-precision build on graphics chips with
|
| 194 |
-
16-bit maths, `version_4bit` (v0.6, trained 4-bit-aware) for the 4-bit builds, where v0.3 fails.
|
| 195 |
|
| 196 |
## Role of the language model
|
| 197 |
|
|
|
|
| 164 |
computers and crashed phones, and the 0.5B chat model did not survive 4-bit rounding. They remain in the Space's git
|
| 165 |
history. `mobile/` stays because the synthetic data generator uses its evidence code.
|
| 166 |
|
| 167 |
+
## Install
|
| 168 |
+
|
| 169 |
+
One command installs the current release and opens it. The script checks the download against the published SHA-256
|
| 170 |
+
list and refuses to install on a mismatch. A file fetched by Terminal or PowerShell is not marked as downloaded from the
|
| 171 |
+
internet, so macOS does not ask to allow Arx (no "Open Anyway") and Windows SmartScreen does not warn.
|
| 172 |
+
|
| 173 |
+
| System | Command |
|
| 174 |
+
|---|---|
|
| 175 |
+
| macOS (Terminal) | `curl -fsSL https://devseis-arx.static.hf.space/install.sh \| bash` |
|
| 176 |
+
| Linux (terminal) | `curl -fsSL https://devseis-arx.static.hf.space/install.sh \| bash` (the .deb on Debian/Ubuntu, otherwise the AppImage) |
|
| 177 |
+
| Windows (PowerShell) | `irm https://devseis-arx.static.hf.space/install.ps1 \| iex` (per-user install, no administrator rights) |
|
| 178 |
+
|
| 179 |
+
Scripts: [`install.sh`](install.sh), [`install.ps1`](install.ps1). Update: run the command again. Uninstall (macOS, Linux):
|
| 180 |
+
`curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash -s -- --uninstall`. The installer files themselves are in
|
| 181 |
+
[Devseis/endpoint-auditor-releases](https://huggingface.co/datasets/Devseis/endpoint-auditor-releases); opened from a browser
|
| 182 |
+
download, macOS asks to allow them once (System Settings › Privacy & Security › Open Anyway).
|
| 183 |
+
|
| 184 |
+
Settings for organisations: `~/Library/Application Support/Devseis Endpoint Auditor/` on macOS (`baseline.conf`,
|
| 185 |
+
`organisational.conf`; the folder keeps its old name since the rename to Arx in 0.4.3). Reports: *Documents › Arx Reports*.
|
| 186 |
+
Build it yourself: `cd app && npm install && npm run dist`; smoke-test a build with
|
| 187 |
+
`DEVSEIS_SMOKE=<folder> "<app>/Contents/MacOS/Arx"` (add `DEVSEIS_SMOKE_MODEL=1` to include the model).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
## Role of the language model
|
| 190 |
|
index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
</nav>
|
| 24 |
<div class="nav-actions">
|
| 25 |
<button type="button" class="icon-btn" id="themeToggle" aria-label="Light or dark" title="Light or dark">◐</button>
|
| 26 |
-
<a class="btn btn-primary btn-sm" href="#
|
| 27 |
</div>
|
| 28 |
</div>
|
| 29 |
</header>
|
|
@@ -47,13 +47,17 @@
|
|
| 47 |
|
| 48 |
<div class="phone-note hidden" id="phoneNote">
|
| 49 |
<b>📱 Arx checks computers, not phones.</b>
|
| 50 |
-
<span class="muted">Open this page on your Mac, Windows or Linux computer to
|
| 51 |
<button type="button" class="btn btn-sm" id="copyLink">Copy link</button>
|
| 52 |
</div>
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
<div class="cta">
|
| 55 |
-
<a class="btn
|
| 56 |
-
<label class="btn
|
| 57 |
<input type="file" id="reportFile" accept=".json,application/json" hidden>
|
| 58 |
</div>
|
| 59 |
<p class="tiny muted" id="heroMeta">Free · open source · version 0.5.3</p>
|
|
@@ -76,7 +80,7 @@
|
|
| 76 |
<section class="wrap section" id="how">
|
| 77 |
<div class="section-head"><h2>How it works</h2></div>
|
| 78 |
<ol class="steps">
|
| 79 |
-
<li><span class="step-n">1</span><div><b>
|
| 80 |
<li><span class="step-n">2</span><div><b>Run the audit</b><p class="muted">The audit only reads settings: nothing changes unless you later click Fix. The first run downloads the AI once; after that it works offline.</p></div></li>
|
| 81 |
<li><span class="step-n">3</span><div><b>Get your report and fix</b><p class="muted">A score, your biggest gaps and how to fix each one, as a PDF. On Mac and Linux, click <b>Fix</b> and Arx changes the setting for you (on a Mac it also opens the right System Settings page for the rest). Every fix can be undone.</p></div></li>
|
| 82 |
</ol>
|
|
@@ -94,73 +98,44 @@
|
|
| 94 |
</div>
|
| 95 |
</section>
|
| 96 |
|
| 97 |
-
<section class="wrap section" id="
|
| 98 |
-
<div class="section-head"><h2>
|
|
|
|
| 99 |
<div class="dl-grid">
|
| 100 |
<article class="dl-card" data-os="mac">
|
| 101 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span>
|
| 102 |
<div class="dl-top"><span class="dl-icon"></span><div><b>macOS</b><span class="tiny muted">macOS 13+ · Apple chip or Intel</span></div></div>
|
| 103 |
-
<div class="
|
| 104 |
-
<
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
| 107 |
</article>
|
| 108 |
<article class="dl-card" data-os="windows">
|
| 109 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span><span class="ribbon ribbon-beta">BETA</span>
|
| 110 |
<div class="dl-top"><span class="dl-icon"></span><div><b>Windows</b><span class="tiny muted">Windows 10 or 11 · 64-bit</span></div></div>
|
| 111 |
-
<div class="
|
| 112 |
-
<
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
| 115 |
</article>
|
| 116 |
<article class="dl-card" data-os="linux">
|
| 117 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span>
|
| 118 |
-
<div class="dl-top"><span class="dl-icon"></span><div><b>Linux</b><span class="tiny muted">Ubuntu, Debian, Mint,
|
| 119 |
-
<div class="
|
| 120 |
-
<
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
| 123 |
</article>
|
| 124 |
</div>
|
| 125 |
-
<
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
<section class="wrap section" id="first-open">
|
| 129 |
-
<div class="section-head"><h2>Opening Arx the first time</h2><span class="tiny muted">one-time, about 30 seconds</span></div>
|
| 130 |
-
<div class="seg seg-help" id="helpSeg">
|
| 131 |
-
<button type="button" data-help="mac">macOS</button><button type="button" data-help="windows">Windows</button><button type="button" data-help="linux">Linux</button>
|
| 132 |
-
</div>
|
| 133 |
-
<div class="help-panel" data-help="mac">
|
| 134 |
-
<p class="muted help-why">Arx is free and not yet registered with Apple, so macOS blocks it the first time. This is normal: you allow it once and it opens normally after that.</p>
|
| 135 |
-
<ol class="help-steps">
|
| 136 |
-
<li><span class="hs-n">1</span><div><b>Open the downloaded file</b><p class="muted">Double-click <code>Arx-…-mac-universal.dmg</code> in Downloads, then drag <b>Arx</b> onto <b>Applications</b>.</p></div></li>
|
| 137 |
-
<li><span class="hs-n">2</span><div><b>Open Arx from Applications</b><p class="muted">macOS shows <i>"Arx" Not Opened</i> or <i>Apple could not verify…</i>. Click <b>Done</b> (not Move to Bin).</p>
|
| 138 |
-
<div class="mock mock-alert"><div class="mock-icon">⚠️</div><b>"Arx" Not Opened</b><span>Apple could not verify "Arx" is free of malware…</span><div class="mock-btns"><span class="mock-btn">Move to Bin</span><span class="mock-btn mock-blue">Done</span></div></div></div></li>
|
| 139 |
-
<li><span class="hs-n">3</span><div><b>Allow it in System Settings</b><p class="muted">Open the Apple menu › <b>System Settings</b> › <b>Privacy & Security</b>. Scroll down to <b>Security</b> and click <b>Open Anyway</b> next to "Arx" was blocked…, then enter your Mac password.</p>
|
| 140 |
-
<div class="mock mock-settings"><span class="muted">Security</span><div class="mock-row"><span>"Arx" was blocked to protect your Mac.</span><span class="mock-btn mock-hl">Open Anyway</span></div></div></div></li>
|
| 141 |
-
<li><span class="hs-n">4</span><div><b>Click Open</b><p class="muted">macOS asks one last time: click <b>Open Anyway</b>. From now on Arx opens like any other app.</p></div></li>
|
| 142 |
-
</ol>
|
| 143 |
-
<div class="help-fallback">
|
| 144 |
-
<b>"Open Anyway" does nothing?</b> <span class="muted">A known macOS 26 problem. Quit System Settings (⌘Q), open Arx once more, click Done, then try Open Anyway again. If it still does nothing, open <b>Terminal</b> (Applications › Utilities), paste this line and press Return. It removes the download mark from Arx only and opens it; no password needed:</span>
|
| 145 |
-
<div class="copy-row"><code id="xattrCmd">xattr -dr com.apple.quarantine /Applications/Arx.app && open /Applications/Arx.app</code><button type="button" class="btn btn-sm" data-copy="xattrCmd">Copy</button></div>
|
| 146 |
-
</div>
|
| 147 |
-
</div>
|
| 148 |
-
<div class="help-panel hidden" data-help="windows">
|
| 149 |
-
<p class="muted help-why">Arx is free and not yet signed with a Microsoft certificate, so Windows SmartScreen may warn you once.</p>
|
| 150 |
-
<ol class="help-steps">
|
| 151 |
-
<li><span class="hs-n">1</span><div><b>Run the downloaded file</b><p class="muted">Double-click <code>Arx-…-windows-x64-setup.exe</code> in Downloads.</p></div></li>
|
| 152 |
-
<li><span class="hs-n">2</span><div><b>If you see "Windows protected your PC"</b><p class="muted">Click <b>More info</b>, then <b>Run anyway</b>.</p>
|
| 153 |
-
<div class="mock mock-win"><b>Windows protected your PC</b><span>Microsoft Defender SmartScreen prevented an unrecognised app from starting…</span><span class="mock-link">More info</span><div class="mock-btns"><span class="mock-btn mock-hl">Run anyway</span><span class="mock-btn">Don't run</span></div></div></div></li>
|
| 154 |
-
<li><span class="hs-n">3</span><div><b>Install and open</b><p class="muted">Follow the installer; Arx is then on your desktop and in the Start menu.</p></div></li>
|
| 155 |
-
</ol>
|
| 156 |
-
</div>
|
| 157 |
-
<div class="help-panel hidden" data-help="linux">
|
| 158 |
-
<p class="muted help-why">No warning to get past: install the package or make the AppImage runnable.</p>
|
| 159 |
-
<ol class="help-steps">
|
| 160 |
-
<li><span class="hs-n">1</span><div><b>Ubuntu, Debian, Mint, Pop!_OS</b><p class="muted">Double-click the <code>.deb</code> file to install it with Software, or run <code>sudo apt install ./Arx-…-linux-x86_64.deb</code>.</p></div></li>
|
| 161 |
-
<li><span class="hs-n">2</span><div><b>Any other distribution</b><p class="muted">Run <code>chmod +x Arx-…-linux-x86_64.AppImage</code>, then double-click it.</p></div></li>
|
| 162 |
-
</ol>
|
| 163 |
-
</div>
|
| 164 |
</section>
|
| 165 |
|
| 166 |
<section class="wrap section" id="about">
|
|
@@ -201,14 +176,14 @@
|
|
| 201 |
<footer class="foot">
|
| 202 |
<div class="wrap foot-inner">
|
| 203 |
<div><b>Arx</b> <span class="muted">· a free security audit for your computer</span></div>
|
| 204 |
-
<div class="foot-links"><a href="#
|
| 205 |
</div>
|
| 206 |
</footer>
|
| 207 |
<div class="modal-back hidden" id="dlModal" role="dialog" aria-modal="true" aria-labelledby="dlModalTitle">
|
| 208 |
<div class="modal">
|
| 209 |
<button type="button" class="icon-btn modal-x" id="dlModalClose" aria-label="Close">✕</button>
|
| 210 |
-
<p class="eyebrow">
|
| 211 |
-
<h2 id="dlModalTitle">
|
| 212 |
<div id="dlModalBody"></div>
|
| 213 |
<button type="button" class="btn btn-primary" id="dlModalOk">Got it</button>
|
| 214 |
</div>
|
|
|
|
| 23 |
</nav>
|
| 24 |
<div class="nav-actions">
|
| 25 |
<button type="button" class="icon-btn" id="themeToggle" aria-label="Light or dark" title="Light or dark">◐</button>
|
| 26 |
+
<a class="btn btn-primary btn-sm" href="#install">Install</a>
|
| 27 |
</div>
|
| 28 |
</div>
|
| 29 |
</header>
|
|
|
|
| 47 |
|
| 48 |
<div class="phone-note hidden" id="phoneNote">
|
| 49 |
<b>📱 Arx checks computers, not phones.</b>
|
| 50 |
+
<span class="muted">Open this page on your Mac, Windows or Linux computer to install it.</span>
|
| 51 |
<button type="button" class="btn btn-sm" id="copyLink">Copy link</button>
|
| 52 |
</div>
|
| 53 |
|
| 54 |
+
<div class="cmd-hero" id="heroInstall">
|
| 55 |
+
<span class="tiny muted cmd-where" id="heroWhere">Paste in Terminal and press Return</span>
|
| 56 |
+
<div class="cmd-box"><code id="heroCmd">curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash</code><button type="button" class="btn btn-primary" data-copy-cmd="hero">Copy</button></div>
|
| 57 |
+
</div>
|
| 58 |
<div class="cta">
|
| 59 |
+
<a class="btn" href="#install">How to install</a>
|
| 60 |
+
<label class="btn" for="reportFile" title="Open the …-evidence.json file Arx saves next to each report">Open a report</label>
|
| 61 |
<input type="file" id="reportFile" accept=".json,application/json" hidden>
|
| 62 |
</div>
|
| 63 |
<p class="tiny muted" id="heroMeta">Free · open source · version 0.5.3</p>
|
|
|
|
| 80 |
<section class="wrap section" id="how">
|
| 81 |
<div class="section-head"><h2>How it works</h2></div>
|
| 82 |
<ol class="steps">
|
| 83 |
+
<li><span class="step-n">1</span><div><b>Install with one command</b><p class="muted">Copy the command for your system, paste it in Terminal (PowerShell on Windows) and press Return. Arx installs and opens: no warning to get past.</p></div></li>
|
| 84 |
<li><span class="step-n">2</span><div><b>Run the audit</b><p class="muted">The audit only reads settings: nothing changes unless you later click Fix. The first run downloads the AI once; after that it works offline.</p></div></li>
|
| 85 |
<li><span class="step-n">3</span><div><b>Get your report and fix</b><p class="muted">A score, your biggest gaps and how to fix each one, as a PDF. On Mac and Linux, click <b>Fix</b> and Arx changes the setting for you (on a Mac it also opens the right System Settings page for the rest). Every fix can be undone.</p></div></li>
|
| 86 |
</ol>
|
|
|
|
| 98 |
</div>
|
| 99 |
</section>
|
| 100 |
|
| 101 |
+
<section class="wrap section" id="install">
|
| 102 |
+
<div class="section-head"><h2>Install Arx</h2><span class="tiny muted" id="dlVersion">Version 0.5.3</span></div>
|
| 103 |
+
<p class="muted install-why">One command installs Arx and opens it. It downloads Arx from Hugging Face, <b>checks its SHA-256 fingerprint</b> against the published one, and refuses to install if anything differs. Because Terminal downloads it, your computer does not block it: no "Open Anyway", no security warning.</p>
|
| 104 |
<div class="dl-grid">
|
| 105 |
<article class="dl-card" data-os="mac">
|
| 106 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span>
|
| 107 |
<div class="dl-top"><span class="dl-icon"></span><div><b>macOS</b><span class="tiny muted">macOS 13+ · Apple chip or Intel</span></div></div>
|
| 108 |
+
<div class="cmd-box"><code id="cmd-mac">curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash</code><button type="button" class="btn btn-sm" data-copy-cmd="mac">Copy</button></div>
|
| 109 |
+
<ol class="paste-steps">
|
| 110 |
+
<li>Press <kbd>⌘</kbd> <kbd>Space</kbd>, type <b>Terminal</b>, press <kbd>Return</kbd>.</li>
|
| 111 |
+
<li>Paste the command (<kbd>⌘</kbd> <kbd>V</kbd>) and press <kbd>Return</kbd>.</li>
|
| 112 |
+
<li>Arx installs in Applications and opens. No password needed.</li>
|
| 113 |
+
</ol>
|
| 114 |
</article>
|
| 115 |
<article class="dl-card" data-os="windows">
|
| 116 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span><span class="ribbon ribbon-beta">BETA</span>
|
| 117 |
<div class="dl-top"><span class="dl-icon"></span><div><b>Windows</b><span class="tiny muted">Windows 10 or 11 · 64-bit</span></div></div>
|
| 118 |
+
<div class="cmd-box"><code id="cmd-windows">irm https://devseis-arx.static.hf.space/install.ps1 | iex</code><button type="button" class="btn btn-sm" data-copy-cmd="windows">Copy</button></div>
|
| 119 |
+
<ol class="paste-steps">
|
| 120 |
+
<li>Click <b>Start</b>, type <b>PowerShell</b>, press <kbd>Enter</kbd>.</li>
|
| 121 |
+
<li>Paste the command (right-click, or <kbd>Ctrl</kbd> <kbd>V</kbd>) and press <kbd>Enter</kbd>.</li>
|
| 122 |
+
<li>Arx installs for you and opens. No administrator rights needed.</li>
|
| 123 |
+
</ol>
|
| 124 |
+
<span class="tiny muted">Beta: not yet tested on real Windows PCs.</span>
|
| 125 |
</article>
|
| 126 |
<article class="dl-card" data-os="linux">
|
| 127 |
<span class="ribbon ribbon-you hidden">YOUR SYSTEM</span>
|
| 128 |
+
<div class="dl-top"><span class="dl-icon"></span><div><b>Linux</b><span class="tiny muted">Ubuntu, Debian, Mint, Fedora… · x86-64</span></div></div>
|
| 129 |
+
<div class="cmd-box"><code id="cmd-linux">curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash</code><button type="button" class="btn btn-sm" data-copy-cmd="linux">Copy</button></div>
|
| 130 |
+
<ol class="paste-steps">
|
| 131 |
+
<li>Open a terminal (<kbd>Ctrl</kbd> <kbd>Alt</kbd> <kbd>T</kbd> on Ubuntu).</li>
|
| 132 |
+
<li>Paste the command (<kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>V</kbd>) and press <kbd>Enter</kbd>.</li>
|
| 133 |
+
<li>On Ubuntu/Debian it asks for your password to install the package; elsewhere it installs the AppImage.</li>
|
| 134 |
+
</ol>
|
| 135 |
</article>
|
| 136 |
</div>
|
| 137 |
+
<details class="faq"><summary>What exactly does the command do?</summary><p class="muted">It downloads a short script (<a class="link" href="install.sh">install.sh</a> for macOS and Linux, <a class="link" href="install.ps1">install.ps1</a> for Windows; read them first if you like). The script fetches the current Arx release and its published SHA-256 list from <a class="link" href="https://huggingface.co/datasets/Devseis/endpoint-auditor-releases">Hugging Face</a>, checks the fingerprint, installs Arx and opens it. To update, run the same command again.</p></details>
|
| 138 |
+
<details class="faq"><summary>How do I uninstall Arx?</summary><p class="muted">macOS and Linux: <code>curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash -s -- --uninstall</code>. Windows: Settings › Apps › Installed apps › Arx › Uninstall. Your reports and settings are kept.</p></details>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
</section>
|
| 140 |
|
| 141 |
<section class="wrap section" id="about">
|
|
|
|
| 176 |
<footer class="foot">
|
| 177 |
<div class="wrap foot-inner">
|
| 178 |
<div><b>Arx</b> <span class="muted">· a free security audit for your computer</span></div>
|
| 179 |
+
<div class="foot-links"><a href="#install">Install</a><a href="https://huggingface.co/spaces/Devseis/Arx/tree/main">Source</a><a href="https://huggingface.co/datasets/Devseis/endpoint-auditor-releases">Releases</a><a href="https://huggingface.co/Devseis/endpoint-auditor-0.5b">AI model</a><a href="CITATION.cff">Cite</a></div>
|
| 180 |
</div>
|
| 181 |
</footer>
|
| 182 |
<div class="modal-back hidden" id="dlModal" role="dialog" aria-modal="true" aria-labelledby="dlModalTitle">
|
| 183 |
<div class="modal">
|
| 184 |
<button type="button" class="icon-btn modal-x" id="dlModalClose" aria-label="Close">✕</button>
|
| 185 |
+
<p class="eyebrow">✓ Command copied</p>
|
| 186 |
+
<h2 id="dlModalTitle">Now paste it in Terminal</h2>
|
| 187 |
<div id="dlModalBody"></div>
|
| 188 |
<button type="button" class="btn btn-primary" id="dlModalOk">Got it</button>
|
| 189 |
</div>
|
install.ps1
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Arx installer for Windows 10/11 (64-bit). In PowerShell:
|
| 2 |
+
# irm https://devseis-arx.static.hf.space/install.ps1 | iex
|
| 3 |
+
# Downloads the current Arx release from Hugging Face (Devseis/endpoint-auditor-releases), checks its SHA-256 against the
|
| 4 |
+
# published SHA256SUMS, installs it for this user (no administrator rights needed) and opens it. A file downloaded by
|
| 5 |
+
# PowerShell is not marked as coming from the internet, so SmartScreen does not stop it.
|
| 6 |
+
# Uninstall: Settings > Apps > Installed apps > Arx > Uninstall.
|
| 7 |
+
$ErrorActionPreference = 'Stop'
|
| 8 |
+
$ProgressPreference = 'SilentlyContinue' # much faster downloads in Windows PowerShell 5.1
|
| 9 |
+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
| 10 |
+
$Releases = 'https://huggingface.co/datasets/Devseis/endpoint-auditor-releases/resolve/main'
|
| 11 |
+
|
| 12 |
+
function Step($Text) { Write-Host '> ' -ForegroundColor Red -NoNewline; Write-Host $Text }
|
| 13 |
+
function Fail($Text) { Write-Host "Arx install stopped: $Text" -ForegroundColor Red; throw "Arx install stopped" }
|
| 14 |
+
|
| 15 |
+
try {
|
| 16 |
+
if (-not [Environment]::Is64BitOperatingSystem) { Fail 'Arx needs 64-bit Windows 10 or 11.' }
|
| 17 |
+
Write-Host 'Installing Arx - free security audit for your computer' -ForegroundColor White
|
| 18 |
+
Step 'finding the current version'
|
| 19 |
+
$sums = (Invoke-WebRequest -UseBasicParsing "$Releases/SHA256SUMS").Content
|
| 20 |
+
if ($sums -is [byte[]]) { $sums = [Text.Encoding]::UTF8.GetString($sums) }
|
| 21 |
+
$version = (Invoke-RestMethod -UseBasicParsing "$Releases/latest.json").version
|
| 22 |
+
if (-not $version) { Fail 'could not read the current version.' }
|
| 23 |
+
$file = "Arx-$version-windows-x64-setup.exe"
|
| 24 |
+
$want = ($sums -split "`n" | Where-Object { ($_ -split '\s+')[1] -eq $file } | ForEach-Object { ($_ -split '\s+')[0] }) | Select-Object -First 1
|
| 25 |
+
if (-not $want) { Fail "$file is not in SHA256SUMS." }
|
| 26 |
+
|
| 27 |
+
$tmp = Join-Path $env:TEMP "arx-install-$([guid]::NewGuid().ToString('N'))"
|
| 28 |
+
New-Item -ItemType Directory -Path $tmp | Out-Null
|
| 29 |
+
$exe = Join-Path $tmp $file
|
| 30 |
+
Step "downloading $file"
|
| 31 |
+
Invoke-WebRequest -UseBasicParsing "$Releases/$file" -OutFile $exe
|
| 32 |
+
$got = (Get-FileHash -Algorithm SHA256 $exe).Hash.ToLower()
|
| 33 |
+
if ($got -ne $want.ToLower()) { Fail "the download does not match the published checksum (expected $want, got $got). Nothing was installed." }
|
| 34 |
+
Step "checksum OK ($want)"
|
| 35 |
+
try { Unblock-File $exe } catch { } # not needed for a PowerShell download; harmless where it applies
|
| 36 |
+
|
| 37 |
+
Get-Process -Name 'Arx' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
|
| 38 |
+
Step 'installing for this user (no administrator rights needed)'
|
| 39 |
+
$p = Start-Process -FilePath $exe -ArgumentList '/S' -Wait -PassThru
|
| 40 |
+
if ($p.ExitCode -ne 0) { Fail "the installer ended with code $($p.ExitCode)." }
|
| 41 |
+
Remove-Item -Recurse -Force $tmp -ErrorAction SilentlyContinue
|
| 42 |
+
|
| 43 |
+
$app = Join-Path $env:LOCALAPPDATA 'Programs\Arx\Arx.exe'
|
| 44 |
+
if (-not (Test-Path $app)) { $app = (Get-ChildItem "$env:LOCALAPPDATA\Programs" -Recurse -Filter 'Arx.exe' -ErrorAction SilentlyContinue | Select-Object -First 1).FullName }
|
| 45 |
+
Step "installed Arx $version"
|
| 46 |
+
if ($app) { Start-Process $app; Write-Host 'Done. Arx is open. Next time, open Arx from the Start menu or the desktop shortcut.' -ForegroundColor White }
|
| 47 |
+
else { Write-Host 'Done. Open Arx from the Start menu.' -ForegroundColor White }
|
| 48 |
+
} catch {
|
| 49 |
+
if ($_.Exception.Message -ne 'Arx install stopped') { Write-Host "Arx install stopped: $($_.Exception.Message)" -ForegroundColor Red }
|
| 50 |
+
}
|
install.sh
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Arx installer for macOS and Linux:
|
| 3 |
+
# curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash
|
| 4 |
+
# Downloads the current Arx release from Hugging Face (Devseis/endpoint-auditor-releases), checks its SHA-256 against the
|
| 5 |
+
# published SHA256SUMS, installs it and opens it. A file fetched with curl is not marked "downloaded from the internet",
|
| 6 |
+
# so macOS does not ask you to allow Arx in System Settings. Uninstall: ... | bash -s -- --uninstall
|
| 7 |
+
#
|
| 8 |
+
# macOS: Arx.app goes to /Applications (or ~/Applications if you cannot write there). No password is needed.
|
| 9 |
+
# Linux: the .deb on Debian/Ubuntu (sudo asks for your password), otherwise the AppImage in ~/Applications.
|
| 10 |
+
set -euo pipefail
|
| 11 |
+
|
| 12 |
+
RELEASES="https://huggingface.co/datasets/Devseis/endpoint-auditor-releases/resolve/main"
|
| 13 |
+
UNINSTALL=0; [ "${1:-}" = "--uninstall" ] && UNINSTALL=1
|
| 14 |
+
|
| 15 |
+
bold() { printf '\033[1m%s\033[0m\n' "$*"; }
|
| 16 |
+
step() { printf '\033[1;31m›\033[0m %s\n' "$*"; }
|
| 17 |
+
fail() { printf '\033[1;31mArx install stopped:\033[0m %s\n' "$*" >&2; exit 1; }
|
| 18 |
+
need() { command -v "$1" >/dev/null 2>&1 || fail "the command '$1' is needed but not found."; }
|
| 19 |
+
SUDO=sudo; [ "$(id -u)" -eq 0 ] && SUDO=""
|
| 20 |
+
|
| 21 |
+
OS=$(uname -s)
|
| 22 |
+
case "$OS" in Darwin|Linux) ;; *) fail "this installer is for macOS and Linux. On Windows use: irm https://devseis-arx.static.hf.space/install.ps1 | iex" ;; esac
|
| 23 |
+
|
| 24 |
+
# --- uninstall ---------------------------------------------------------------------------------------------------
|
| 25 |
+
if [ "$UNINSTALL" -eq 1 ]; then
|
| 26 |
+
bold "Removing Arx"
|
| 27 |
+
pkill -f "Arx.app/Contents/MacOS/Arx" 2>/dev/null || true
|
| 28 |
+
pkill -f "/opt/Arx/arx" 2>/dev/null || true
|
| 29 |
+
for app in /Applications/Arx.app "$HOME/Applications/Arx.app"; do [ -d "$app" ] && rm -rf "$app" && step "removed $app"; done
|
| 30 |
+
[ -f "$HOME/Applications/Arx.AppImage" ] && rm -f "$HOME/Applications/Arx.AppImage" "$HOME/.local/share/applications/arx.desktop" && step "removed the Arx AppImage"
|
| 31 |
+
if [ "$OS" = Linux ] && dpkg -s devseis-endpoint-auditor >/dev/null 2>&1; then step "removing the Arx package (sudo asks for your password)"; $SUDO apt-get remove -y devseis-endpoint-auditor >/dev/null; fi
|
| 32 |
+
echo "Your settings and reports were kept (Arx Reports in Documents; settings in the Devseis Endpoint Auditor folder)."
|
| 33 |
+
exit 0
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
need curl
|
| 37 |
+
bold "Installing Arx — free security audit for your computer"
|
| 38 |
+
TMP=$(mktemp -d); trap 'rm -rf "$TMP"' EXIT
|
| 39 |
+
|
| 40 |
+
step "finding the current version"
|
| 41 |
+
curl -fsSL "$RELEASES/SHA256SUMS" -o "$TMP/SHA256SUMS" || fail "could not reach Hugging Face. Check the internet connection."
|
| 42 |
+
VERSION=$(curl -fsSL "$RELEASES/latest.json" | sed -n 's/.*"version": *"\([0-9.]*\)".*/\1/p' | head -1)
|
| 43 |
+
[ -n "$VERSION" ] || fail "could not read the current version."
|
| 44 |
+
|
| 45 |
+
pick() { awk -v f="$1" '$2 == f { print $1 }' "$TMP/SHA256SUMS"; }
|
| 46 |
+
fetch() { # file -> downloads it to $TMP and checks the SHA-256 against SHA256SUMS
|
| 47 |
+
local file=$1 want got
|
| 48 |
+
want=$(pick "$file"); [ -n "$want" ] || fail "$file is not in SHA256SUMS."
|
| 49 |
+
step "downloading $file"
|
| 50 |
+
curl -fL --progress-bar "$RELEASES/$file" -o "$TMP/$file" || fail "the download failed."
|
| 51 |
+
if command -v shasum >/dev/null 2>&1; then got=$(shasum -a 256 "$TMP/$file" | cut -d' ' -f1); else got=$(sha256sum "$TMP/$file" | cut -d' ' -f1); fi
|
| 52 |
+
[ "$got" = "$want" ] || fail "the download does not match the published checksum (expected $want, got $got). Nothing was installed."
|
| 53 |
+
step "checksum OK ($want)"
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
if [ "$OS" = Darwin ]; then
|
| 57 |
+
FILE="Arx-$VERSION-mac-universal.zip"
|
| 58 |
+
fetch "$FILE"
|
| 59 |
+
ditto -x -k "$TMP/$FILE" "$TMP/x" || fail "could not unpack Arx."
|
| 60 |
+
APP="$TMP/x/Arx/Arx.app"; [ -d "$APP" ] || APP="$TMP/x/Arx.app"; [ -d "$APP" ] || fail "Arx.app was not found in the download."
|
| 61 |
+
DEST=/Applications; [ -w "$DEST" ] || { DEST="$HOME/Applications"; mkdir -p "$DEST"; }
|
| 62 |
+
pkill -f "Arx.app/Contents/MacOS/Arx" 2>/dev/null && sleep 1 || true
|
| 63 |
+
rm -rf "$DEST/Arx.app"
|
| 64 |
+
ditto "$APP" "$DEST/Arx.app" || fail "could not copy Arx to $DEST."
|
| 65 |
+
xattr -dr com.apple.quarantine "$DEST/Arx.app" 2>/dev/null || true
|
| 66 |
+
step "installed Arx $VERSION in $DEST"
|
| 67 |
+
open "$DEST/Arx.app"
|
| 68 |
+
bold "Done. Arx is open. Next time, open it from $DEST or Launchpad."
|
| 69 |
+
else
|
| 70 |
+
if command -v apt-get >/dev/null 2>&1 && command -v dpkg >/dev/null 2>&1 && [ "$(uname -m)" = x86_64 ]; then
|
| 71 |
+
FILE="Arx-$VERSION-linux-x86_64.deb"
|
| 72 |
+
fetch "$FILE"
|
| 73 |
+
step "installing the package (sudo asks for your password)"
|
| 74 |
+
$SUDO apt-get install -y "$TMP/$FILE" >/dev/null || fail "apt could not install Arx."
|
| 75 |
+
step "installed Arx $VERSION"
|
| 76 |
+
(nohup /opt/Arx/arx >/dev/null 2>&1 &) || true
|
| 77 |
+
bold "Done. Arx is starting. Next time, open Arx from your applications menu."
|
| 78 |
+
elif [ "$(uname -m)" = x86_64 ]; then
|
| 79 |
+
FILE="Arx-$VERSION-linux-x86_64.AppImage"
|
| 80 |
+
fetch "$FILE"
|
| 81 |
+
mkdir -p "$HOME/Applications" "$HOME/.local/share/applications"
|
| 82 |
+
install -m 755 "$TMP/$FILE" "$HOME/Applications/Arx.AppImage"
|
| 83 |
+
printf '[Desktop Entry]\nName=Arx\nComment=Security audit for this computer\nExec=%s\nTerminal=false\nType=Application\nCategories=Utility;\n' "$HOME/Applications/Arx.AppImage" > "$HOME/.local/share/applications/arx.desktop"
|
| 84 |
+
step "installed Arx $VERSION in ~/Applications/Arx.AppImage"
|
| 85 |
+
(nohup "$HOME/Applications/Arx.AppImage" >/dev/null 2>&1 &) || true
|
| 86 |
+
bold "Done. Arx is starting. If it does not open, install FUSE (e.g. sudo dnf install fuse-libs) and run ~/Applications/Arx.AppImage."
|
| 87 |
+
else
|
| 88 |
+
fail "Arx for Linux needs a 64-bit Intel/AMD (x86_64) computer."
|
| 89 |
+
fi
|
| 90 |
+
fi
|
site/site.css
CHANGED
|
@@ -268,3 +268,22 @@ body { background: radial-gradient(900px 420px at 15% -80px, var(--glow1), trans
|
|
| 268 |
.help-fallback { margin-top: 12px; padding: 14px; border: 1px dashed var(--amber); border-radius: var(--radius); background: color-mix(in srgb, var(--amber) 6%, var(--card)); font-size: 14px; }
|
| 269 |
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
|
| 270 |
.copy-row code { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
.help-fallback { margin-top: 12px; padding: 14px; border: 1px dashed var(--amber); border-radius: var(--radius); background: color-mix(in srgb, var(--amber) 6%, var(--card)); font-size: 14px; }
|
| 269 |
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
|
| 270 |
.copy-row code { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
|
| 271 |
+
|
| 272 |
+
/* ---------- one-command install ---------- */
|
| 273 |
+
.cmd-hero { max-width: 640px; margin: 0 auto 14px; text-align: left; }
|
| 274 |
+
.cmd-where { display: block; margin: 0 2px 6px; }
|
| 275 |
+
.cmd-box { display: flex; gap: 8px; align-items: stretch; background: #0d1117; border: 1px solid #30363d; border-radius: var(--radius); padding: 6px 6px 6px 14px; box-shadow: 0 12px 30px -18px rgba(237, 41, 57, .55); }
|
| 276 |
+
.cmd-box code { flex: 1; min-width: 0; align-self: center; background: none; padding: 0; color: #e6edf3; font-size: 14px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; word-break: normal; }
|
| 277 |
+
.cmd-box code::before { content: '$ '; color: #7ee787; }
|
| 278 |
+
.cmd-box code::-webkit-scrollbar { display: none; }
|
| 279 |
+
.cmd-box .btn { flex-shrink: 0; }
|
| 280 |
+
.dl-card .cmd-box { padding-left: 10px; box-shadow: none; }
|
| 281 |
+
.dl-card .cmd-box code { font-size: 12.5px; }
|
| 282 |
+
.install-why { margin: 0 2px 14px; font-size: 14px; max-width: 760px; }
|
| 283 |
+
.install-why b { color: var(--fg); }
|
| 284 |
+
.paste-steps { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
|
| 285 |
+
.paste-steps b { color: var(--fg); }
|
| 286 |
+
kbd { font-family: var(--font); font-size: 12px; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--card); color: var(--fg); }
|
| 287 |
+
.modal .cmd-box { box-shadow: none; }
|
| 288 |
+
.modal .paste-steps { font-size: 14px; }
|
| 289 |
+
@media (max-width: 520px) { .cmd-box code { font-size: 12px; } }
|
site/site.js
CHANGED
|
@@ -47,21 +47,18 @@ async function detect() {
|
|
| 47 |
return { phone, os, browser, version, arch };
|
| 48 |
}
|
| 49 |
|
| 50 |
-
// ----------
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
document.querySelectorAll('#helpSeg button').forEach(b => b.setAttribute('aria-pressed', String(b.dataset.help === os)));
|
| 58 |
-
document.querySelectorAll('#first-open .help-panel').forEach(p => p.classList.toggle('hidden', p.dataset.help !== os));
|
| 59 |
-
}
|
| 60 |
-
document.querySelectorAll('#helpSeg button').forEach(b => b.addEventListener('click', () => showHelp(b.dataset.help)));
|
| 61 |
|
| 62 |
-
function
|
| 63 |
-
const
|
| 64 |
-
$('
|
|
|
|
| 65 |
$('dlModal').classList.remove('hidden');
|
| 66 |
$('dlModalOk').focus();
|
| 67 |
}
|
|
@@ -70,25 +67,23 @@ $('dlModalClose').addEventListener('click', closeDlModal);
|
|
| 70 |
$('dlModalOk').addEventListener('click', closeDlModal);
|
| 71 |
$('dlModal').addEventListener('click', e => { if (e.target === $('dlModal')) closeDlModal(); });
|
| 72 |
addEventListener('keydown', e => { if (e.key === 'Escape') closeDlModal(); });
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
const
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
});
|
| 80 |
|
| 81 |
function chooseOs(os) {
|
| 82 |
state.os = os;
|
| 83 |
-
showHelp(os);
|
| 84 |
document.querySelectorAll('#osSeg button').forEach(b => b.setAttribute('aria-pressed', String(b.dataset.os === os)));
|
| 85 |
document.querySelectorAll('.dl-card').forEach(c => {
|
| 86 |
c.classList.toggle('you', c.dataset.os === os);
|
| 87 |
c.querySelector('.ribbon-you').classList.toggle('hidden', c.dataset.os !== os);
|
| 88 |
});
|
| 89 |
-
$('
|
| 90 |
-
|
| 91 |
-
$('heroDownload').href = main && main.href ? main.href : '#download';
|
| 92 |
renderTable();
|
| 93 |
}
|
| 94 |
|
|
@@ -97,7 +92,7 @@ async function initDevice() {
|
|
| 97 |
if (d.phone) {
|
| 98 |
$('phoneNote').classList.remove('hidden');
|
| 99 |
$('deviceIcon').textContent = '📱'; $('deviceLabel').textContent = 'You are on a phone or tablet'; $('deviceName').textContent = 'Choose the computer to check';
|
| 100 |
-
$('
|
| 101 |
document.querySelector('label[for="reportFile"]').classList.add('hidden');
|
| 102 |
} else {
|
| 103 |
$('deviceName').textContent = [OS_LABEL[d.os] + (d.version ? ` ${d.version}` : ''), d.arch, d.browser].filter(Boolean).join(' · ');
|
|
@@ -113,26 +108,13 @@ $('copyLink').addEventListener('click', async () => {
|
|
| 113 |
catch { toast(location.origin + location.pathname); }
|
| 114 |
});
|
| 115 |
|
| 116 |
-
// ----------
|
| 117 |
async function initDownloads() {
|
| 118 |
try {
|
| 119 |
const rel = await (await fetch(RELEASES + 'latest.json', { cache: 'no-cache' })).json();
|
| 120 |
-
const set = (key, file) => document.querySelectorAll(`[data-link="${key}"]`).forEach(a => { a.href = RELEASES + file.file; a.setAttribute('download', ''); });
|
| 121 |
-
set('mac-dmg', rel.mac.dmg); set('mac-zip', rel.mac.zip);
|
| 122 |
-
if (rel.windows) set('win-exe', rel.windows.exe);
|
| 123 |
-
if (rel.linux) { set('linux-deb', rel.linux.deb); set('linux-appimage', rel.linux.appimage); }
|
| 124 |
-
const sizes = { mac: rel.mac.dmg, windows: rel.windows?.exe, linux: rel.linux?.deb };
|
| 125 |
-
for (const [os, f] of Object.entries(sizes)) if (f) {
|
| 126 |
-
document.querySelector(`[data-size="${os}"]`).textContent = `${f.size_mb} MB`;
|
| 127 |
-
document.querySelector(`[data-hash="${os}"]`).textContent = `${f.file}\n${f.sha256}`;
|
| 128 |
-
}
|
| 129 |
$('dlVersion').textContent = `Version ${rel.version} · ${rel.date}`;
|
| 130 |
$('heroMeta').textContent = `Free · open source · version ${rel.version}`;
|
| 131 |
-
|
| 132 |
-
} catch {
|
| 133 |
-
document.querySelectorAll('[data-hash]').forEach(c => { c.textContent = 'Could not load: see the releases page.'; });
|
| 134 |
-
document.querySelectorAll('.dl-card .btn-primary').forEach(a => { a.href = 'https://huggingface.co/datasets/Devseis/endpoint-auditor-releases'; });
|
| 135 |
-
}
|
| 136 |
}
|
| 137 |
|
| 138 |
// ---------- checks ----------
|
|
|
|
| 47 |
return { phone, os, browser, version, arch };
|
| 48 |
}
|
| 49 |
|
| 50 |
+
// ---------- install: one command per system (Terminal / PowerShell), copied with one click ----------
|
| 51 |
+
const COMMANDS = {
|
| 52 |
+
mac: 'curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash',
|
| 53 |
+
linux: 'curl -fsSL https://devseis-arx.static.hf.space/install.sh | bash',
|
| 54 |
+
windows: 'irm https://devseis-arx.static.hf.space/install.ps1 | iex',
|
| 55 |
+
};
|
| 56 |
+
const WHERE = { mac: 'Paste in Terminal and press Return', linux: 'Paste in a terminal and press Enter', windows: 'Paste in PowerShell and press Enter' };
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
function openPasteModal(os) {
|
| 59 |
+
const steps = document.querySelector(`.dl-card[data-os="${os}"] .paste-steps`);
|
| 60 |
+
$('dlModalTitle').textContent = `Now paste it in ${os === 'windows' ? 'PowerShell' : 'Terminal'}`;
|
| 61 |
+
$('dlModalBody').innerHTML = `<div class="cmd-box"><code>${esc(COMMANDS[os])}</code></div>` + (steps ? steps.outerHTML : '');
|
| 62 |
$('dlModal').classList.remove('hidden');
|
| 63 |
$('dlModalOk').focus();
|
| 64 |
}
|
|
|
|
| 67 |
$('dlModalOk').addEventListener('click', closeDlModal);
|
| 68 |
$('dlModal').addEventListener('click', e => { if (e.target === $('dlModal')) closeDlModal(); });
|
| 69 |
addEventListener('keydown', e => { if (e.key === 'Escape') closeDlModal(); });
|
| 70 |
+
document.addEventListener('click', async e => {
|
| 71 |
+
const b = e.target.closest('[data-copy-cmd]'); if (!b) return;
|
| 72 |
+
const os = b.dataset.copyCmd === 'hero' ? state.os : b.dataset.copyCmd;
|
| 73 |
+
try { await navigator.clipboard.writeText(COMMANDS[os]); } catch { /* the modal shows the command to copy by hand */ }
|
| 74 |
+
b.textContent = 'Copied ✓'; setTimeout(() => { b.textContent = 'Copy'; }, 2000);
|
| 75 |
+
openPasteModal(os);
|
| 76 |
});
|
| 77 |
|
| 78 |
function chooseOs(os) {
|
| 79 |
state.os = os;
|
|
|
|
| 80 |
document.querySelectorAll('#osSeg button').forEach(b => b.setAttribute('aria-pressed', String(b.dataset.os === os)));
|
| 81 |
document.querySelectorAll('.dl-card').forEach(c => {
|
| 82 |
c.classList.toggle('you', c.dataset.os === os);
|
| 83 |
c.querySelector('.ribbon-you').classList.toggle('hidden', c.dataset.os !== os);
|
| 84 |
});
|
| 85 |
+
$('heroCmd').textContent = COMMANDS[os];
|
| 86 |
+
$('heroWhere').textContent = WHERE[os];
|
|
|
|
| 87 |
renderTable();
|
| 88 |
}
|
| 89 |
|
|
|
|
| 92 |
if (d.phone) {
|
| 93 |
$('phoneNote').classList.remove('hidden');
|
| 94 |
$('deviceIcon').textContent = '📱'; $('deviceLabel').textContent = 'You are on a phone or tablet'; $('deviceName').textContent = 'Choose the computer to check';
|
| 95 |
+
$('heroInstall').classList.add('hidden');
|
| 96 |
document.querySelector('label[for="reportFile"]').classList.add('hidden');
|
| 97 |
} else {
|
| 98 |
$('deviceName').textContent = [OS_LABEL[d.os] + (d.version ? ` ${d.version}` : ''), d.arch, d.browser].filter(Boolean).join(' · ');
|
|
|
|
| 108 |
catch { toast(location.origin + location.pathname); }
|
| 109 |
});
|
| 110 |
|
| 111 |
+
// ---------- version shown on the page ----------
|
| 112 |
async function initDownloads() {
|
| 113 |
try {
|
| 114 |
const rel = await (await fetch(RELEASES + 'latest.json', { cache: 'no-cache' })).json();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
$('dlVersion').textContent = `Version ${rel.version} · ${rel.date}`;
|
| 116 |
$('heroMeta').textContent = `Free · open source · version ${rel.version}`;
|
| 117 |
+
} catch { /* keep the version written in the page */ }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
|
| 120 |
// ---------- checks ----------
|