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

Add: GOG-Galaxy #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
43 changes: 43 additions & 0 deletions bucket/gog-galaxy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "2.0.25.2",
"description": "Connect GOG GALAXY 2.0 with multiple platforms and unite all your games and friends scattered across them in one powerful app (A game platform designed to connect all game platforms).",
"homepage": "https://www.gog.com/galaxy",
"license": {
"identifier": "Proprietary",
"url": "https://support.gog.com/hc/en-us/articles/212632089-User-Agreement"
},
"depends": "innounp",
"url": "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/setup_galaxy_2.0.25.2.exe",
"hash": "md5:d09244d6ccb563da59ffd83767b50b2b",
"installer": {
"script": [
"$file = \"$dir\\$fname\"",
"Expand-InnoArchive -Path $file -ExtractDir '{%ALLUSERSPROFILE}' -DestinationPath $env:ALLUSERSPROFILE",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this? Since it does not satisfy the concept of the bucket All apps in this repository should NOT require elevated privileges while installation..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This instruction did not cause elevated privileges, actually, at least there's no pop-up window for elevated privileges.
There are four directories after unpacking with innounp: {%ALLUSERSPROFILE}, {app}, {fonts}, {tmp}.
Where {%ALLUSERSPROFILE} is designed to be under the $env:ALLUSERSPROFILE path (C:\ProgramData)
If the path is not organized in this way, the program will report an error:
Essential components needed to start GOG Galaxy are missing or incorrectly configured. if this continues, please reinstall the application.
I didn't find a solution, I think that's how they write the program.

Copy link
Owner

@chawyehsu chawyehsu Dec 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This instruction did not cause elevated privileges, actually, at least there's no pop-up window for elevated privileges.

C:\ProgramData requires the Administrators role to write, you'll not see UAC if you're the Administrator.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To check current user whether is Administrator or not:

[System.Security.Principal.WindowsIdentity]::GetCurrent().Name -in (Get-LocalGroupMember -Group "Administrators").Name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I'm the administrator.
So what should we do? GOG will read components in $env:ALLUSERSPROFILE, the program cannot accept a parameter to change this behavior.

"Expand-InnoArchive -Path $file -Removal",
"if ( !(Test-Path $dir\\Games) ) { New-Item -Type Directory -Path $dir\\Games }"
]
},
"uninstaller": {
"script": "Write-Host \"`nNote:`n------`nYou need to delete `$env:ALLUSERSPROFILE\\GOG.com yourself.`n\""
},
Comment on lines +20 to +22
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this section, uninstall, I mean.
Delete the directory will cause elevated privileges with pop-up window, so I think users should be reminded to delete it.

"persist": "Games",
"bin": "GalaxyClient.exe",
"shortcuts": [
[
"GalaxyClient.exe",
"GOG Galaxy"
]
],
"notes": "You can use <https://github.com/Mixaill/awesome-gog-galaxy> search plugins to connect to other platforms.",
"checkver": {
"url": "https://remote-config.gog.com/components/webinstaller?component_version=2.0.0",
"jsonpath": "$.content.windows.version"
},
"autoupdate": {
"url": "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/setup_galaxy_$version.exe",
"hash": {
"url": "https://remote-config.gog.com/components/webinstaller?component_version=2.0.0",
"jsonpath": "$.content.windows.installerMd5"
}
}
}