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

Vortex: Add checkbox to disable automatic updates #804

Merged
merged 3 commits into from
May 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lang/chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/dutch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1155,3 +1155,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/englishUK.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/french.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/german.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1156,3 +1156,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/italian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/polish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
2 changes: 2 additions & 0 deletions lang/russian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,5 @@ GUI_CW_WINEGE="Wine-GE URL"
DESC_CW_WINEGE="The project page of Wine-GE"
GUI_DLSTEAMDECKCOMPATINFO="Download Steam Deck compatibility information"
DESC_DLSTEAMDECKCOMPATINFO="Fetch Steam Deck compatibility information from Steam - Previously fetched compatibility information will be preserved"
GUI_DISABLEVORTEXAUTOUPDATE="Disable Vortex Auto Updates"
DESC_DISABLEVORTEXAUTOUPDATE="sets Vortex update channel to 'No automatic updates' which can help prevent breakages - if disabled, will set to stable/beta depending on value of 'USEVORTEXPRERELEASE' checkbox"
23 changes: 22 additions & 1 deletion steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20230516-3"
PROGVERS="v14.0.20230516-4"
PROGCMD="${0##*/}"
SHOSTL="stl"
GHURL="https://github.com"
Expand Down Expand Up @@ -2661,6 +2661,7 @@ function setDefaultCfgValues {
if [ -z "$VORTEXCOMPDATA" ] ; then VORTEXCOMPDATA="$STLVORTEXDIR/$CODA"; fi
if [ -z "$VORTEXDOWNLOADPATH" ] ; then VORTEXDOWNLOADPATH="$STLVORTEXDIR/downloads"; fi
if [ -z "$USEVORTEXPRERELEASE" ] ; then USEVORTEXPRERELEASE="0"; fi
if [ -z "$DISABLEVORTEXAUTOUPDATE" ] ; then DISABLEVORTEXAUTOUPDATE="0"; fi
if [ -z "$DISABLE_AUTOSTAGES" ] ; then DISABLE_AUTOSTAGES="0"; fi
if [ -z "$NOSTEAMSTLDEF" ] ; then NOSTEAMSTLDEF="0"; fi
if [ -z "$SGDBAPIKEY" ] ; then SGDBAPIKEY="$NON"; fi
Expand Down Expand Up @@ -3116,6 +3117,8 @@ function saveCfg {
echo "VORTEXDOWNLOADPATH=\"$VORTEXDOWNLOADPATH\""
echo "## $DESC_USEVORTEXPRERELEASE"
echo "USEVORTEXPRERELEASE=\"$USEVORTEXPRERELEASE\""
echo "## $DESC_DISABLEVORTEXAUTOUPDATE"
echo "DISABLEVORTEXAUTOUPDATE=\"$DISABLEVORTEXAUTOUPDATE\""
echo "## $(strFix "$DESC_DISABLE_AUTOSTAGES" "$PROGNAME")"
echo "DISABLE_AUTOSTAGES=\"$DISABLE_AUTOSTAGES\""
echo "## $DESC_NOSTEAMSTLDEF"
Expand Down Expand Up @@ -5303,6 +5306,7 @@ function AllSettingsEntriesDummyFunction {
--field=" $GUI_RUN_VORTEX_WINETRICKS!$DESC_RUN_VORTEX_WINETRICKS ('RUN_VORTEX_WINETRICKS')":CHK "${RUN_VORTEX_WINETRICKS/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \
--field=" $GUI_RUN_VORTEX_WINECFG!$DESC_RUN_VORTEX_WINECFG ('RUN_VORTEX_WINECFG')":CHK "${RUN_VORTEX_WINECFG/#-/ -}" `#CAT_Vortex` `#MENU_GAME` \
--field=" $GUI_USEVORTEXPRERELEASE!$DESC_USEVORTEXPRERELEASE ('USEVORTEXPRERELEASE')":CHK "${USEVORTEXPRERELEASE/#-/ -}" `#CAT_Vortex` `#SUB_Checkbox` `#MENU_GLOBAL` \
--field=" $GUI_DISABLEVORTEXAUTOUPDATE!$DESC_DISABLEVORTEXAUTOUPDATE ('DISABLEVORTEXAUTOUPDATE')":CHK "${DISABLEVORTEXAUTOUPDATE/#-/ -}" `#CAT_Vortex` `#SUB_Checkbox` `#MENU_GLOBAL` \
--field=" $GUI_VORTEXDOWNLOADPATH!$DESC_VORTEXDOWNLOADPATH ('VORTEXDOWNLOADPATH')":DIR "${VORTEXDOWNLOADPATH/#-/ -}" `#CAT_Vortex` `#SUB_Directories` `#MENU_GLOBAL` \
--field=" $GUI_VORTEXCOMPDATA!$DESC_VORTEXCOMPDATA ('VORTEXCOMPDATA')":DIR "${VORTEXCOMPDATA/#-/ -}" `#CAT_Vortex` `#SUB_Directories` `#MENU_GLOBAL` \
--field=" $GUI_USEVORTEXPROTON!$DESC_USEVORTEXPROTON ('USEVORTEXPROTON')":CB "$(cleanDropDown "${USEVORTEXPROTON/#-/ -}" "$PROTYADLIST")" `#CAT_Vortex` `#MENU_GLOBAL` \
Expand Down Expand Up @@ -14709,6 +14713,22 @@ function resetVortexSettings {
diff -u "$STLSHM/vortsetbefore.txt" "$STLSHM/vortsetafter.txt"
}

function setVortexReleaseChannel {
# Vortex settings.update.channel can be either 'stable', 'beta', or 'none' (where 'none' is 'No automatic updates')
VTXUPDATECHANNEL="stable"
if [ "$DISABLEVORTEXAUTOUPDATE" -eq 1 ]; then
VTXUPDATECHANNEL="none"
else
if [ "$USEVORTEXPRERELEASE" -eq 1 ]; then
VTXUPDATECHANNEL="beta"
else
VTXUPDATECHANNEL="stable"
fi
fi

setVortSet "settings.update.channel=\"\\\"$VTXUPDATECHANNEL\\\"\""
}

function startVortex {
setVortexVars
askVortex "$1"
Expand All @@ -14734,6 +14754,7 @@ function startVortex {
setVortexDLMime
setVortexDLPath
setVortexConfigVdf
setVortexReleaseChannel

if [ -n "$2" ] && [ "$2" -eq "$2" ] 2>/dev/null; then
StatusWindow "${VTX^}" "prepareVortexGame $2" "PrepareVortexGameStatus"
Expand Down