$pkg_dst_cmd = "$Env:USERPROFILE\.local\bin\mutagen.exe"
$pkg_dst = "$pkg_dst_cmd"
-$pkg_src_cmd = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION\bin\mutagen.exe"
-$pkg_src_bin = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION\bin"
+$pkg_src_cmd = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION\mutagen.exe"
+$pkg_src_bin = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION"
$pkg_src_dir = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION"
$pkg_src = "$pkg_src_cmd"
& tar xf "$pkg_download"
echo "Install Location: $pkg_src_cmd"
- New-Item "$pkg_src_bin" -ItemType Directory -Force
- Move-Item -Path ".\mutagen.exe" -Destination "$pkg_src_bin"
+ New-Item "$pkg_src_dir" -ItemType Directory -Force
+ Move-Item -Path ".\*" -Destination "$pkg_src_dir"
popd
}
pkg_dst_cmd="$HOME/.local/bin/mutagen"
pkg_dst="$pkg_dst_cmd"
- pkg_src_cmd="$HOME/.local/opt/mutagen-v$WEBI_VERSION/bin/mutagen"
+ pkg_src_cmd="$HOME/.local/opt/mutagen-v$WEBI_VERSION/mutagen"
pkg_src_dir="$HOME/.local/opt/mutagen-v$WEBI_VERSION"
pkg_src="$pkg_src_cmd"
pkg_install() {
- # $HOME/.local/opt/mutagen-v0.11.8/bin
+ # $HOME/.local/opt/mutagen-v0.11.8/
mkdir -p "$(dirname $pkg_src_cmd)"
- # mv ./mutagen* "$HOME/.local/opt/mutagen-v0.11.8/bin/mutagen"
- mv ./mutagen "$pkg_src_cmd"
+ # mv ./* "$HOME/.local/opt/mutagen-v0.11.8/"
+ mv ./* "$pkg_src_dir"
# chmod a+x "$HOME/.local/opt/mutagen-v0.11.8/bin/mutagen"
chmod a+x "$pkg_src_cmd"