misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Tidy comments in the release workflow and the lab deploy script (#252)
Ahmed Nefzaoui5a4e29dde702
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b1625b31..6223436b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -6,9 +6,6 @@# SHA256SUMS.txt, its notes from CHANGELOG.md (Help -> Check for updates sees it at once). The# release waits for Windows and the extensions: a failed Linux or macOS build leaves those out.# - Run by hand (Actions -> Release -> Run workflow) it only builds and keeps them as artifacts.-# Code signing turns on by itself once these repository secrets exist:-# CODESIGN_PFX_BASE64 the certificate (.pfx), base64-# CODESIGN_PASSWORD its passwordname: Releaseon:@@ -147,8 +144,7 @@ jobs:New-Item -ItemType Directory -Force target/store | Out-NullCopy-Item target/extension/mdm-chrome-store.zip "target/store/MisterDownloadManager-$v-chrome-web-store.zip"- # The Firefox add-on is listed on addons.mozilla.org: with the AMO API key in the- # repository's secrets (AMO_JWT_ISSUER, AMO_JWT_SECRET), each release's version is sent there+ # The Firefox add-on is listed on addons.mozilla.org: each release's version is sent there# for review (not waited for); Firefox installs and updates it from its listing. The .xpi# in the release stays the unsigned one (for about:debugging).- name: Send the Firefox add-on to addons.mozilla.org@@ -170,11 +166,9 @@ jobs:}# The extension is listed in the Chrome Web Store (ejoleppdfgjdndddcjoehopknmlglojp,- # crates/ipc STORE_ID): with the store API's OAuth credentials in the repository's secrets- # (CWS_CLIENT_ID, CWS_CLIENT_SECRET, CWS_REFRESH_TOKEN, CWS_PUBLISHER_ID), each release's zip- # is uploaded and sent for review (not waited for); Chrome, Edge, Brave, Opera and Vivaldi- # update from the listing. Without them it is uploaded by hand from the chrome-web-store- # artifact. A store refusal (a version it has already) never fails the release.+ # crates/ipc STORE_ID): each release's zip is uploaded and sent for review (not waited for);+ # Chrome, Edge, Brave, Opera and Vivaldi update from the listing. A store refusal (a version+ # it has already) never fails the release.- name: Send the extension to the Chrome Web Storeif: ${{ env.CWS_REFRESH_TOKEN != '' }}continue-on-error: true@@ -293,8 +287,8 @@ jobs:$files = Get-ChildItem dist -File | Sort-Object Name$sums = $files | ForEach-Object { "$((Get-FileHash $_.FullName -Algorithm SHA256).Hash.ToLower()) $($_.Name)" }Set-Content -Encoding ascii dist/SHA256SUMS.txt $sums- # Signed with MDM's release key (fingerprint 5826D399249DE856EA087D802E293C28E8A69D74, the- # MDM_RELEASE_KEY secret): MDM updates itself only from a list it signed+ # Signed with MDM's release key (fingerprint 5826D399249DE856EA087D802E293C28E8A69D74):+ # MDM updates itself only from a list it signed# (crates/tools/src/update.rs; the public key is crates/tools/keys/mdm-release.asc).if ($env:MDM_RELEASE_KEY) {$key = Join-Path $env:RUNNER_TEMP "mdm-release.asc"diff --git a/tools/lab/wsl/deploy.ps1 b/tools/lab/wsl/deploy.ps1index 725cc330..74f2f1e4 100644--- a/tools/lab/wsl/deploy.ps1+++ b/tools/lab/wsl/deploy.ps1@@ -7,8 +7,7 @@ real desktop (GNOME or KDE portals, the tray, real browsers) never waits for theThe programs are read straight from the distribution's disk (\\wsl$\mdm-lab\home\lab\lab\bin\<label>)and copied with VBoxManage guestcontrol into a folder beside the target, then renamed into place(a running program or script is never overwritten half-way). The VM must be running; nothing else-of it changes. Its account: MDM_VM_USER / MDM_VM_PASSWORD, or the git-ignored k/vm-ubuntu.txt-("user: <name>" and "password: <word>" lines), never printed. -DryRun: what it would copy, and+of it changes. Its account: MDM_VM_USER / MDM_VM_PASSWORD, never printed. -DryRun: what it would copy, andwhere, without calling VBoxManage (its guestcontrol copyto has no dry run of its own).#>param(@@ -22,16 +21,15 @@ $vbox = Join-Path $env:ProgramFiles 'Oracle\VirtualBox\VBoxManage.exe'if ($Label -notmatch '^[A-Za-z0-9._-]+$') { throw "label: letters, digits, '.', '_' and '-' only" }$user = $env:MDM_VM_USER; $pass = $env:MDM_VM_PASSWORD-# k\ is in the main checkout (a worktree has none): found through git's common folder.-$common = git -C $PSScriptRoot rev-parse --path-format=absolute --git-common-dir 2>$null-$keys = if ($common) { Join-Path (Split-Path -Parent $common) 'k\vm-ubuntu.txt' } else { '' }-if ((-not $user -or -not $pass) -and $keys -and (Test-Path $keys)) {+# Or a local file outside the repository, like the other developer keys (%USERPROFILE%\.mdm-dev).+$keys = Join-Path $env:USERPROFILE '.mdm-dev\vm-account.txt'+if ((-not $user -or -not $pass) -and (Test-Path $keys)) {foreach ($line in Get-Content $keys) {if (-not $user -and $line -match '^\s*user:\s*(\S+)') { $user = $Matches[1] }if (-not $pass -and $line -match '^\s*password:\s*(\S+)') { $pass = $Matches[1] }}}-if (-not $user -or -not $pass) { throw "no VM account: set MDM_VM_USER and MDM_VM_PASSWORD, or k\vm-ubuntu.txt" }+if (-not $user -or -not $pass) { throw "no VM account: set MDM_VM_USER and MDM_VM_PASSWORD" }$auth = @('--username', $user, '--password', $pass)$src = "\\wsl$\$Distro\home\lab\lab\bin\$Label"