FlawlessCasual17 / MyScoop

This bucket contains apps that are not in the known ScoopInstaller buckets.
The Unlicense
5 stars 1 forks source link

TranslucentTB-np does not work #9

Closed SiyuChen closed 1 year ago

SiyuChen commented 1 year ago

Bug Report

Package Name: TranslucentTB-np.

Current Behaviour

It does not really install. One can't find it in the win10 start menu.

Expected Behaviour

A clickable icon should be created in the win10 start menu, then one can make the taskbar transparent by launching TranslucentTB

Additional context/output

Possible Solution

Instead of using TranslucentTB.bundle.msixbundle, we should use TranslucentTB.appinstaller.

"Add-AppxPackage \"$dir\TranslucentTB.appinstaller\" -AppInstaller"

image

image

Also, see the earlier json: https://github.com/ScoopInstaller/Extras/commit/bdb12b16c66604f13fe1d18bab9d94e704417fb6

FlawlessCasual17 commented 1 year ago

Fixed, it should work now. @SiyuChen can you test it please after running scoop update?

FlawlessCasual17 commented 1 year ago

It works fine for me. Is there some sort of program like an antivirus that is causing problems for your system?

SiyuChen commented 1 year ago

@Zliced13 I don't have any antivirus on my laptop. After some tests, I think the problem comes from Add-AppxPackage.

Please see the following screenshots :

image image

image image

So, it seems that my laptop is only happy with Add-AppxPackage .\TranslucentTB.appinstaller -AppInstaller.

*.msixbundle does not work and -AppInstaller is necessary for some reason.

SiyuChen commented 1 year ago

This translucenttb-np.json then works fine for me

{ "version": "2022.1", "description": "Makes the Windows taskbar translucent/transparent.", "homepage": "https://github.com/TranslucentTB/TranslucentTB", "license": "GPL-3.0-only", "url": "https://github.com/TranslucentTB/TranslucentTB/releases/download/2022.1/TranslucentTB.appinstaller", "hash": "ed15932b0e4782b03c2689281e2af42e181987d836ecf06c0e1c86508295ba41", "pre_install": [ "Start-Process 'powershell' -Wait -WindowStyle 'Hidden' -ArgumentList @('-C', \"Add-AppxPackage \"\"$dir\TranslucentTB.appinstaller\"\" -AppInstaller\")", "Remove-Item \"$dir\TranslucentTB.appinstaller\"" ], "pre_uninstall": [ "if (!(isadmin)) { error \"$app requires admin rights to $cmd\"; break }", "Remove-Item \"$env:ProgramData\Packages\*.TranslucentTB\" -Force -Recurse -ErrorAction 'SilentlyContinue'", "Start-Process 'powershell' -Wait -WindowStyle 'Hidden' -ArgumentList @('-C', 'Get-AppxPackage ''.TranslucentTB'' | Remove-AppxPackage')", "Start-Sleep -Seconds 2" ], "checkver": "github", "autoupdate": { "url": "https://github.com/TranslucentTB/TranslucentTB/releases/download/$version/TranslucentTB.appinstaller" } }

FlawlessCasual17 commented 1 year ago

@SiyuChen Try it again, it should work this time.

SiyuChen commented 1 year ago

Thank you very much! Confirm it works now. Is it going to be put into the nonportable bucket soon?

FlawlessCasual17 commented 1 year ago

Hopefully yes.