mirror of
https://github.com/Rafiuth/Soggfy.git
synced 2026-04-25 07:05:58 +03:00
[PR #87] [MERGED] Add Install.cmd and fix relative path issues in Install.ps1 #146
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Soggfy#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rafiuth/Soggfy/pull/87
Author: @cubernetes
Created: 11/15/2023
Status: ✅ Merged
Merged: 11/16/2023
Merged by: @Rafiuth
Base:
master← Head:master📝 Commits (3)
cfa772cChange all paths to absolute paths34fee1bAdd convenience script to launch Install.ps1 with correct execution policy.7151e30Update README.md📊 Changes
3 files changed (+29 additions, -24 deletions)
View changed files
📝
README.md(+1 -1)➕
SpotifyOggDumper/Data/Install.cmd(+1 -0)📝
SpotifyOggDumper/Data/Install.ps1(+27 -23)📄 Description
Install.ps1 uses relative paths for all its file operations. However, in certain circumstances, this relative path points to C;\Windows\System32 (or whatever the system drive letter is). This is independent of the current working directory, so
Set-Location -Path $PWD.Pathdoes not affect that behaviour. The solution is to change all relative paths to absolute paths.Also, many user complain that the script opens and exits immediately, which is due to the execution policy not being set. Setting the execution policy globally is a very bad idea, so you should never, ever run
set-executionpolicy unrestricted. If at all you should runset-executionpolicy unrestricted -Scope process.However, a more convenient way is to use a wrapper batch script to do that for you, as you can see in Install.cmd. This will start powershell with an execution policy "bypass" so it's only for the lifetime of the installation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.