Numstr / Obsidian-Portable

Obsidian Portable For Windows
65 stars 5 forks source link

Portable App GitHub Repo Template #3

Open Adhjie opened 1 month ago

Adhjie commented 1 month ago

So anyone could get the latest release without waiting the maintainer of portable apps in PortableApps.com

  1. So first question, could you share the template on how to make any app portable like this repo? maybe a repo that is a tutorial on how to make any apps portable called "Portable App Template".

  2. Second question, how does this one always fetch the latest release just by using updater.bat file?

  3. Is this inspired from PortableApps platform but differs or is the exact same mechanism?

  4. How about ensuring it, being safe e.g., the .apk match the signing certificate hash by using AppVerifier/apksigner in desktop?

6a. (this is a bit sidetrack but it is possible to download a lot of apps straight from GitHub through an app called Obtainium and verify it using AppVerifier app that is integrated with Obtainium, now I never heard mobile portable app but this indeed is interesting, additional bonus question? This is entirely not on topic since it's mobile, but I guess putting this in package manager is a way to get this always updated, or an auto-update feature is on the roadmap)

Actual question, could AppVerifier be integrated with this app? (Obtainium desktop port is a great idea to rival package manager but I think that's too advance for now.)

6b. Additional question about updater, is the update manual, is there an auto-updater, or is it easier to put this in package manager with a volunteer maintainer?

6c. And most package managers have checks like Winget, Chocolatey, and also PortableApps with Virustotal scan, how to check the safeness of this app?

Adhjie commented 1 month ago

Oh, yeah. I have just realized. since this is more of a suggestion. Isn't GitHub discussion feature more appropriate to be opened for this type of question, rather than issue tab only?

Numstr commented 1 month ago

Im make this for my self to fast check latest version and download it. 90% of time you dont need to update launcher AppNameLauncher.exe, just update app located in App\AppName. Also you can download latest release from github manually, unpack it used 7zip and replace all files in App\AppName.

So first question, could you share the template on how to make any app portable like this repo? maybe a repo that is a tutorial on how to make any apps portable called "Portable App Template". Is this inspired from PortableApps platform but differs or is the exact same mechanism?

It use PortableApps.com Launcher to generate launcher, each app must be described (each app leave different trash) in App/AppInfo/Launcher/AppNamePortable.ini here info how to do this, also you can find tutorial on youtube or google.

Second question, how does this one always fetch the latest release just by using updater.bat file?

Updater.bat is just script that use some linux utils located in App/Utils to check for latest version from obsidian github repo, download it and unpack. If devs change package name or structure Updater.bat can be broken. Also, not all installers can be unpack easily.

How about ensuring it, being safe e.g., the .apk match the signing certificate hash by using AppVerifier/apksigner in desktop?

You can check hash/certificate for Obsidian.exe located in App/Obsidian.

Creating something like Obtainium takes a lot of time, which I dont have.

Adhjie commented 1 month ago

Okay for now I will check the link and do this myself manually. Since I don't have the time either to make a portable launcher like this repository.