flyxiv / ffxiv_simhelper_public

0 stars 0 forks source link

Add github electron-updater for continuous version up;date #31

Closed flyxiv closed 1 week ago

flyxiv commented 1 week ago

we can't make the user download the app whenever there's a new update. We make the app auto update if there are changes in release version.

flyxiv commented 1 week ago

image

put a "publish" option in package.json

flyxiv commented 1 week ago

First make nsis complete

publishing only supports NSIS, so i need the program to be installed via NSIS and not by zip file.

flyxiv commented 1 week ago

Seems like when you install nsis, all the files in win-unpacked is copied to Local/App. This means app needs everything that it needs to run in win-unpacked.

flyxiv commented 1 week ago

image

configuring all needed asset folders in dist to extraFiles solved the issue.

flyxiv commented 1 week ago

my source code repository is private, so make this repository a proxy for release.

image

add token

flyxiv commented 1 week ago

renamed repo to ffxiv_simhelper_public.

image

set publish settings in "build": "publish"

flyxiv commented 1 week ago

set GH_TOKEN in the machine I will release in

image

flyxiv commented 1 week ago

The solution above is temporary; I have to enter it every new session.

image

going to permanently add it using WIN environment variables settings

flyxiv commented 1 week ago

image

added using these steps

flyxiv commented 1 week ago

image

add a publish build yarn command

flyxiv commented 1 week ago

image

gh_token error?

flyxiv commented 1 week ago

using $env:GH_TOKEN="{TOKEN}" solves the issue.

image

flyxiv commented 1 week ago

doesn't show up in releases

flyxiv commented 1 week ago

image

it uploads as a draft: https://github.com/flyxiv/ffxiv_simhelper_public/releases

flyxiv commented 1 week ago

image

release publishes 3 assets

flyxiv commented 1 week ago

I installed only setup-0.0.1.exe and ran the file. works well image

flyxiv commented 1 week ago

add auto-updater of electron-updater image

image

flyxiv commented 1 week ago

image

added auto updater logic

flyxiv commented 1 week ago

image

yarn install to install new dependencies and build.

flyxiv commented 1 week ago

installed 0.0.2, now deploying 0.0.3 to see if they give notification

image

flyxiv commented 1 week ago

image

now notifies when there is new version available. updates and installs when restart is clicked