得得

开源
FastGithub社区

建议app 内部添加更新机制不用每次都要从release 下载

heartacker 2021-11-20 12:11 12回复

Bug描述
需求

重现步骤

  1. 每次都要重新下载
12 条回复
  • #1
    xljiulang 2021-11-20 12:11

    暂时不考虑自动更新机制

  • #2
    heartacker 2021-11-20 12:11

    好的,留个issue。期待哪天实现

  • #3
    jingliancui 2021-11-21 16:11

    一个建议:
    如果要做的话可以参考ILSpy那样通过Windows Store发布

  • #4
    ViCrack 2021-11-29 16:11

    简单试验了一下
    可以利用scoop自动安装更新

    scoop install https://raw.githubusercontent.com/ViCrack/scoop-bucket/master/bucket/fastgithub.json

    安装启动

    > scoop install fastgithub
    Installing 'fastgithub' (2.1.1) [64bit]
    Loading fastgithub_win-x64.zip from cache.
    Checking hash of fastgithub_win-x64.zip ... ok.
    Extracting fastgithub_win-x64.zip ... done.
    Linking ~\scoop\apps\fastgithub\current => ~\scoop\apps\fastgithub\2.1.1
    Creating shim for 'fastgithub'.
    Creating shim for 'FastGithub.UI'.
    Creating shortcut for FastGithub.UI (FastGithub.UI.exe)
    Persisting appsettings
    Persisting cacert
    Persisting logs
    Persisting appsettings.json
    'fastgithub' (2.1.1) was installed successfully!
    > fastgithub.exe start
    >
    

    彻底卸载

    > scoop uninstall fastgithub -p
    Uninstalling 'fastgithub' (2.1.1).
    Running uninstaller script...
    成功: 已终止进程 "FastGithub.UI.exe",其 PID 为 23492。
    2021-11-29T16:20:40.6575687+08:00 [INF]
    FastGithub
    服务停止成功
    Removing shim for 'fastgithub'.
    Removing shim for 'FastGithub.UI'.
    Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\FastGithub.UI.lnk
    Unlinking ~\scoop\apps\fastgithub\current
    Removing persisted data.
    'fastgithub' was uninstalled.
    

    更新启动

    > scoop update fastgithub
    fastgithub: 2.1.1 -> 2.1.2
    Updating one outdated app:
    Updating 'fastgithub' (2.1.1 -> 2.1.2)
    Downloading new version
    Starting download with aria2 ...
    Download: Download Results:
    Download: gid   |stat|avg speed  |path/URI
    Download: ======+====+===========+=======================================================
    Download: 29abe0|OK  |   5.3MiB/s|C:/Users/~/scoop/cache/fastgithub#2.1.2#https_github.com_dotnetcore_FastGithub_releases_download_2.1.2_fastgithub_win-x64.zip
    Download: (OK):download completed.
    Checking hash of fastgithub_win-x64.zip ... ok.
    Uninstalling 'fastgithub' (2.1.1)
    Running uninstaller script...
    
    信息: 没有运行的带有指定标准的任务。
    2021-11-29T16:46:23.5458920+08:00 [INF]
    FastGithub
    服务停止成功
    
    Removing shim for 'fastgithub'.
    Removing shim for 'FastGithub.UI'.
    Unlinking ~\scoop\apps\fastgithub\current
    Installing 'fastgithub' (2.1.2) [64bit]
    Loading fastgithub_win-x64.zip from cache.
    Extracting fastgithub_win-x64.zip ... done.
    Linking ~\scoop\apps\fastgithub\current => ~\scoop\apps\fastgithub\2.1.2
    Creating shim for 'fastgithub'.
    Creating shim for 'FastGithub.UI'.
    Creating shortcut for FastGithub.UI (FastGithub.UI.exe)
    Persisting appsettings
    Persisting cacert
    Persisting logs
    Persisting appsettings.json
    'fastgithub' (2.1.2) was installed successfully!
    > fastgithub.exe start
    >
    
  • #5
    xljiulang 2021-11-29 16:11

    666

  • #6
    sgf 2021-12-05 20:12

    Windows Store 并不普及.

  • #7
    Ramon403 2021-12-28 17:12

    Windows Store 并不普及.

    谁电脑上还没个应用商店,开发不会还在用win10以下的电脑吧

  • #8
    jingliancui 2021-12-28 17:12

    其实可以参考摸鱼

    https://www.microsoft.com/store/productId/9NDJ3Q12NRRM

    原本也是没有上架的,后面也是上架后越来越多人用

  • #9
    ViCrack 2021-12-28 18:12

    不是没有应用商店, 是用应用商店的人少, 一般都不会有人上这里去下软件

    而且就算花时间移植、认证、上架了,这种灰色软件在应用商店保不齐就分分钟被人举报了 , 甚至可能连第一步审核都不会通过.....

    还不如把优先级搞在修复bug等事情上

  • #10
    sgf 2021-12-29 10:12

    谁电脑上还没个应用商店,开发不会还在用win10以下的电脑吧

    win10 ltsc 版本就没有。 更何况你是假装看不到这是一个跨平台软件?

  • #11
    8pig 2022-01-19 23:01

    Windows Store 并不普及.

    谁电脑上还没个应用商店,开发不会还在用win10以下的电脑吧

    你不会真用自带商店下载软件吧....

  • #12
    zxcvbnm3057 2022-03-08 16:03

    也许可以支持一下winget?