Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linkArgs not working #37

Open
911432 opened this issue Aug 7, 2024 · 0 comments
Open

linkArgs not working #37

911432 opened this issue Aug 7, 2024 · 0 comments

Comments

@911432
Copy link

911432 commented Aug 7, 2024

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 ---------------------------------------------------- #>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant