Skip to content

Add 64-bit installer - #7

Open
digitalcoyote wants to merge 2 commits into
transmission-remote-gui:masterfrom
digitalcoyote:master
Open

Add 64-bit installer#7
digitalcoyote wants to merge 2 commits into
transmission-remote-gui:masterfrom
digitalcoyote:master

Conversation

@digitalcoyote

Copy link
Copy Markdown

Adds 64-bit installer for #6

@PeterDaveHello PeterDaveHello left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution, please fix the indentation and checksumType, thank you.

Comment thread transgui/tools/chocolateyInstall.ps1 Outdated
Comment thread transgui/tools/chocolateyInstall.ps1 Outdated
Comment thread transgui/tools/chocolateyInstall.ps1 Outdated
url64bit = 'https://github.com/transmission-remote-gui/transgui/releases/download/v5.18.0/transgui-5.18.0-setup_64bit.exe'
checksum = '07CC99294C83D2AE429033ABBDB99642F5271984966616FB2C319F087448C936'
checksum64 = 'BC625C3E32979FDDC9F30FB352843AD0AF2537F331ADDD59DD819381DF07B425'
checksumType = 'sha512'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

and here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the checksumType shouldn't be changed here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Amended with correction. And yeah I must have changed the checksum type out of habit. I should have double-checked this better before submitting a PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Feel free to send another PR after this one 👍

Comment thread transgui/tools/chocolateyInstall.ps1
Comment thread transgui/update.ps1 Outdated
@PeterDaveHello PeterDaveHello changed the title Added 64-bit installer Add 64-bit installer Oct 29, 2019
Comment thread transgui/update.ps1
Comment on lines -22 to +30
$url = $download_page.links | ? href -match $re | select -Expand href -First 1 | % { 'https://github.com' + $_ }
$version = (Split-Path $url -Parent).Split("v")[1]
$url32 = $download_page.links | ? href -match $re | select -Expand href -First 1 | % { 'https://github.com' + $_ }
$version = (Split-Path $url32 -Parent).Split("v")[1]
$url64 = "https://github.com/transmission-remote-gui/transgui/releases/download/v$version/transgui-$version-setup_64bit.exe"

@{
Version = $version
URL32 = $url
URL32 = $url32

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we separate change url -> url32 to another PR or another commit to keep the 64bit installer introduce minimized and focus on only 64bit related changes?

The other parts look good to me 👍

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Technically, can leave it as $url. It's somewhat of a grey area in packages I've seen as to whether or not the 32-bit url is specified as 32. Chocolatey's API seems to use -URL and -URL64(Bit) more than URL32

@digitalcoyote digitalcoyote Oct 29, 2019

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Pushed an amend with that change removed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree to use "32" as part of the keyword, but just separately ;)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

If you prefer the variable naming, I'll add a second commit with it.

Comment thread transgui/update.ps1
$re = '\.exe$'
$url = $download_page.links | ? href -match $re | select -Expand href -First 1 | % { 'https://github.com' + $_ }
$version = (Split-Path $url -Parent).Split("v")[1]
$version = (Split-Path $url32 -Parent).Split("v")[1]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The variable is missed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

🤦‍♂️ Amending. I think I normally rely too much on the compiler to catch mistakes of that nature.

@PeterDaveHello

Copy link
Copy Markdown
Member

LGTM 👍 @mom1 what do you think?

@PeterDaveHello

Copy link
Copy Markdown
Member

If there isn't any rejection, I'll merge this once our 64bit release issue was fixed, thanks for the works here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants