chrupd
chrupd copied to clipboard
linkArgs not working
I used chrupd.cmd with the following modification, but linkArgs="--incognito" doesn't work.
<# :
@echo off & SETLOCAL & SET "_PS=powershell.exe -NoLogo -NoProfile" & SET "_ARGS=\"%~dp0" %*"
%_PS% "&(Invoke-Command {[ScriptBlock]::Create('$Args=@(&{$Args} %_ARGS%);'+((Get-Content \"%~f0\") -Join [char]10))})"
ENDLOCAL & dir "%~f0.tmp" >nul 2>&1 && move /Y "%~f0" "%~f0.bak" >nul 2>&1 && move /Y "%~f0.tmp" "%~f0" >nul 2>&1 & GOTO :EOF
#>
<#
.SYNOPSIS
-------------------------------------------------------------------------
20240630 MK: Simple Chromium Updater (chrupd.cmd)
-------------------------------------------------------------------------
.DESCRIPTION
Installs latest available Chromium version
Checks RSS feed from "chromium.woolyss.com" and GitHub API
Downloads, verifies sha/md5 hash and runs installer:
default name: "Hibbiki", channel "stable", arch "64bit"
set options using cli args or under CONFIGURATION in script
.EXAMPLE
PS> .\chrupd.ps1 -name Marmaduke -arch 64bit -channel stable [-crTask]
#>
<# ------------------------------------------------------------------------- #>
<# CONFIGURATION: #>
<# ------------------------------------------------------------------------- #>
<# Make sure the combination of name and channel is correct. #>
<# See "chrupd.cmd -h" or README.md for more options and details. #>
<# ------------------------------------------------------------------------- #>
$cfg = @{
name = "Ungoogled-Marmaduke"; <# Name of Chromium release (fka "editor") #>
channel = "stable"; <# dev, stable #>
arch = "64bit"; <# Architecture: 32bit or 64bit (default) #>
log = $true <# enable or disable logging <$true|$false> #>
cAutoUp = $true <# auto update this script <$true|$false> #>
sysLvl = $true <# system-level install, install for all users on machine <$true|$false> #>
force = $true <# always (re)install, even if latest version is installed <$true|$false> #>
linkArgs = "--incognito"; <# (archives) sets Chromion shortcut to chrome.exe <arguments> #>
};
<# END OF CONFIGURATION ---------------------------------------------------- #>