mutagen: keep asset files
authorAJ ONeal <aj@therootcompany.com>
Wed, 3 Mar 2021 08:09:05 +0000 (08:09 +0000)
committerAJ ONeal <aj@therootcompany.com>
Wed, 3 Mar 2021 08:09:05 +0000 (08:09 +0000)
mutagen/install.ps1
mutagen/install.sh

index bffc1052fc94f29993f07e428bcf64701f69b1aa..d967d3519182858d41e7e576d4065afd3e027389 100644 (file)
@@ -9,8 +9,8 @@ $pkg_cmd_name = "mutagen"
 $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"
 
@@ -35,8 +35,8 @@ IF (!(Test-Path -Path "$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
 }
index b18183afc37b97596ef37a286c4129dde95e29c1..39e5a66d561d659b023e77e02bd64c5b5c799b3b 100644 (file)
@@ -13,16 +13,16 @@ function __init_mutagen() {
     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"