Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs(user): add nightly release script for Windows
Elian Doran72d6b83ec5ee
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Nightly release.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Nightly release.htmlindex b2bf30c816..2ac344c9bb 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Nightly release.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Nightly release.html@@ -26,10 +26,35 @@<h2>Automatically download and install the latest nightly</h2><p>This is pretty useful if you are a beta tester that wants to periodicallyupdate their version:</p>-<p>On Ubuntu:</p><pre><code class="language-text-x-trilium-auto">#!/usr/bin/env bash+<h2>On Ubuntu (Bash)</h2><pre><code class="language-text-x-sh">#!/usr/bin/env bashname=TriliumNotes-linux-x64-nightly.debrm -f $name*wget https://github.com/TriliumNext/Trilium/releases/download/nightly/$namesudo apt-get install ./$name-rm $name</code></pre>\ No newline at end of file+rm $name</code></pre>+<h2>On Windows (PowerShell)</h2><pre><code class="language-application-x-powershell">if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {+ $arch = "arm64";+} else {+ $arch = "x64";+}++$exeUrl = "https://github.com/TriliumNext/Trilium/releases/download/nightly/TriliumNotes-main-windows-$($arch).exe";+Write-Host "Downloading $($exeUrl)"++# Generate a unique path in the temp dir+$guid = [guid]::NewGuid().ToString()+$destination = Join-Path -Path $env:TEMP -ChildPath "$guid.exe"++try {+ $ProgressPreference = 'SilentlyContinue'+ Invoke-WebRequest -Uri $exeUrl -OutFile $destination+ $process = Start-Process -FilePath $destination+} catch {+ Write-Error "An error occurred: $_"+} finally {+ # Clean up+ if (Test-Path $destination) {+ Remove-Item -Path $destination -Force+ }+}</code></pre>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.htmlindex 5aa0d98b96..daed786e9c 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Web Clipper.html@@ -24,8 +24,7 @@<li>click on an image or link and save it through context menu</li><li>save whole page from the popup or context menu</li><li>save screenshot (with crop tool) from either popup or context menu</li>- <li- >create short text note from popup</li>+ <li>create short text note from popup</li></ul><h2>Location of clippings</h2><p>Trilium will save these clippings as a new child note under a "clipper@@ -40,10 +39,8 @@<p>Keyboard shortcuts are available for most functions:</p><ul><li>Save selected text: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li>- <li- >Save whole page: <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌥</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li>- <li- >Save screenshot: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>E</kbd>)</li>+ <li>Save whole page: <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌥</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li>+ <li>Save screenshot: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>E</kbd>)</li></ul><p>To set custom shortcuts, follow the directions for your browser.</p><ul>@@ -72,20 +69,19 @@<li><a href="https://github.com/TriliumNext/Trilium/releases">GitHub Releases</a> bylooking for releases starting with <em>Web Clipper.</em></li>- <li>Artifacts in GitHub Actions, by looking for the <a href="https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml"><em>Deploy web clipper extension </em>workflow</a>.+ <li>Artifacts in GitHub Actions, by looking for the <a href="https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml"><em>Deploy web clipper extension</em> workflow</a>.Once a workflow run is selected, the ZIP files are available in the <em>Artifacts</em> section,under the name <code spellcheck="false">web-clipper-extension</code>.</li></ul><h3>For Chrome</h3><ol><li>Download <code spellcheck="false">trilium-web-clipper-[x.y.z]-chrome.zip</code>.</li>- <li- >Extract the archive.</li>- <li>In Chrome, navigate to <code spellcheck="false">chrome://extensions/</code>- </li>- <li>Toggle <em>Developer Mode</em> in top-right of the page.</li>- <li>Press the <em>Load unpacked</em> button near the header.</li>- <li>Point to the extracted directory from step (2).</li>+ <li>Extract the archive.</li>+ <li>In Chrome, navigate to <code spellcheck="false">chrome://extensions/</code>+ </li>+ <li>Toggle <em>Developer Mode</em> in top-right of the page.</li>+ <li>Press the <em>Load unpacked</em> button near the header.</li>+ <li>Point to the extracted directory from step (2).</li></ol><h3>For Firefox</h3><aside class="admonition warning">@@ -100,12 +96,10 @@<li>Navigate to <code spellcheck="false">about:addons</code>.</li><li>Select <em>Extensions</em> in the left-side navigation.</li><li>Press the <em>Gear</em> icon on the right of the <em>Manage Your Extensions</em> title.</li>- <li- >Select <em>Install Add-on From File…</em>- </li>- <li>Point it to <code spellcheck="false">trilium-web-clipper-[x.y.z]-firefox.zip</code>.</li>- <li- >Press the <em>Add</em> button to confirm.</li>+ <li>Select <em>Install Add-on From File…</em>+ </li>+ <li>Point it to <code spellcheck="false">trilium-web-clipper-[x.y.z]-firefox.zip</code>.</li>+ <li>Press the <em>Add</em> button to confirm.</li></ol><h2>Credits</h2><p>Some parts of the code are based on the <a href="https://github.com/laurent22/joplin/tree/master/Clipper">Joplin Notes browser extension</a>.</p>\ No newline at end of filediff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.mdindex 505fe22c9b..bf9ed0c44c 100644--- a/docs/Developer Guide/Developer Guide/Documentation.md+++ b/docs/Developer Guide/Developer Guide/Documentation.md@@ -1,5 +1,5 @@# Documentation-There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/jaeLd6kJGrRa/Documentation_image.png" width="205" height="162">+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/JWpRkGvOzpu3/Documentation_image.png" width="205" height="162">* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing <kbd>F1</kbd>.* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.diff --git a/docs/User Guide/User Guide/Advanced Usage/Nightly release.md b/docs/User Guide/User Guide/Advanced Usage/Nightly release.mdindex c9c2aac095..3ef005cd57 100644--- a/docs/User Guide/User Guide/Advanced Usage/Nightly release.md+++ b/docs/User Guide/User Guide/Advanced Usage/Nightly release.md@@ -21,9 +21,9 @@ Depending on your use case, you can either test the portable version or even useThis is pretty useful if you are a beta tester that wants to periodically update their version:-On Ubuntu:+## On Ubuntu (Bash)-```+```sh#!/usr/bin/env bashname=TriliumNotes-linux-x64-nightly.deb@@ -31,4 +31,34 @@ rm -f $name*wget https://github.com/TriliumNext/Trilium/releases/download/nightly/$namesudo apt-get install ./$namerm $name+```++## On Windows (PowerShell)++```powershell+if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {+ $arch = "arm64";+} else {+ $arch = "x64";+}++$exeUrl = "https://github.com/TriliumNext/Trilium/releases/download/nightly/TriliumNotes-main-windows-$($arch).exe";+Write-Host "Downloading $($exeUrl)"++# Generate a unique path in the temp dir+$guid = [guid]::NewGuid().ToString()+$destination = Join-Path -Path $env:TEMP -ChildPath "$guid.exe"++try {+ $ProgressPreference = 'SilentlyContinue'+ Invoke-WebRequest -Uri $exeUrl -OutFile $destination+ $process = Start-Process -FilePath $destination+} catch {+ Write-Error "An error occurred: $_"+} finally {+ # Clean up+ if (Test-Path $destination) {+ Remove-Item -Path $destination -Force+ }+}```\ No newline at end of file