Numstr / Obsidian-Portable

Obsidian Portable For Windows
81 stars 7 forks source link

wget: cant download installer of Obsidian #2

Closed jintaxi closed 5 months ago

jintaxi commented 5 months ago

I tried to update my obsidian first (from version 1.6.3 to version 1.6.5), and then just install it. But after launching, wget throws an error that the server will return a 404 error. I am attaching a screenshot

(here the part is in Russian, but the main errors are clear. Не удается найти указанный файл = The specified file cannot be found)

image

I tried different options: I cleared the DNS cache, restarted the system. I even tried to just add the installer file to the TMP folder myself (after commenting out the folder deletion). But even so, Obsidian just won't start.

P.S. Also, please update the app icon :)

xylltch commented 5 months ago

Looks like Obsidian changed the naming for their Windows release package for 1.6.5, using - instead of . in the filename; so Obsidian-1.6.5.exe instead of the previous Obsidian.1.6.3.exe. Looks like the naming is now consistent across all platforms but I have no idea if it will stay that way for future releases.

For now, replace Obsidian.%LATEST%%ARCH%.exe with Obsidian-%LATEST%%ARCH%.exe on line 90 and it should work correctly.

EDIT: This points the updater to the correct file, but 1.6.5 does not launch on my system; so there may be some incompatibility between the launcher & latest Obsidian release.

EDIT 2: The Obsidian-1.6.5.exe release installer now contains app-32.7z, app-64.7z, and app-arm64.7z packages, and the unpacking section of Updater.bat appears to be unpacking the ARM package.

jintaxi commented 5 months ago

Wow. How they've changed the installer so much now. Yes, I see that now there are as many as 3 versions of the program inside the installer. Previously, Obsidian provided 3 versions on the site (new x64, ARM and legacy). Now they have packed everything into one installer. unfortunately, I am not very good at writing bat scripts and am not very familiar with the principles of the Portable App launcher. Will you be able to rewrite the script a little so that you can install Obsidian again in portable mode? 🥲

jintaxi commented 5 months ago

So, after an incredibly long research, I was still unable to get only 1 app64.7z file from the installer (I can't open the archive the same way I did with the 7zip GUI). Therefore, I propose a slightly crutchy solution that currently works.

  1. You need to download the Obsidian installer from github yourself
  2. Unpack it .exe using 7zip.
  3. The unpacked program will have 2 folders $R0 and $PLUGINSDIR. We need a file that is located at the path $PLUGINSDIR\app-64.7z.
  4. Unzip the app-64.7z file using 7zip.
  5. In the folder with the Updater file.bat on the path App\Obsidian to move all files from the previously unpacked folder app-64.7z.
  6. Run the program using Obsidian Portable.
Numstr commented 5 months ago

Thanks for issue, fixed. Redownload Updater.bat