Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin update #101

Closed
Berisch opened this issue Oct 12, 2024 · 3 comments
Closed

Plugin update #101

Berisch opened this issue Oct 12, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Berisch
Copy link

Berisch commented Oct 12, 2024

Hey!
Not sure if this is the correct place to ask this, but wnated to clarify how can I update the plugin?
Only by re-downloading and replacing the .dll file manually?
Or is it possible to update using updateplugins command?

@Berisch
Copy link
Author

Berisch commented Oct 12, 2024

Forgot to include my results for trying the updateplugins command:

updateplugins stable ASFFreeGamesPlugin
<
Не удалось! Ничего не найдено! (failed! Nothing found)

updateplugins stable
<
Успешно! Ничего не найдено! (success! Nothing found)

updateplugins
<
Успешно! Ничего не найдено! (success! Nothing found)

updateplugins stable ASFFreeGames
<
Не удалось! Ничего не найдено! (failed! Nothing found!)

@maxisoft
Copy link
Owner

Hello,

Thank you for bringing this to my attention. You're absolutely right that the current method for updating the ASFFreeGamesPlugin involves manually downloading the latest release and replacing the DLL file. This can be inconvenient, and I understand your desire to use the updateplugins command for a more streamlined process.

I'm happy to inform you that I'm actively exploring ways to make the ASFFreeGamesPlugin compatible with the updateplugins command. This would involve implementing the IGitHubPluginUpdates interface.

While I can't provide a specific timeframe at this moment, I'm committed to making this update a reality. In the meantime, here are the steps you can follow to manually update the plugin:

  1. Visit the ASFFreeGamesPlugin releases page
  2. Download the latest DLL file that corresponds to your ArchiSteamFarm version.
  3. Close ArchiSteamFarm if it's running.
  4. Replace the existing ASFFreeGamesPlugin.dll file in your ArchiSteamFarm plugins directory with the downloaded one.
  5. Restart ArchiSteamFarm.

I appreciate your patience and understanding. I'll keep you updated on the progress towards updateplugins compatibility for the ASFFreeGamesPlugin.

@maxisoft maxisoft added the enhancement New feature or request label Oct 13, 2024
@maxisoft maxisoft self-assigned this Oct 13, 2024
maxisoft added a commit that referenced this issue Oct 13, 2024
* **Implemented automatic update check via GitHub:** The `ASFFreeGamesPlugin` now supports checking for updates through GitHub. This feature is currently disabled by default (`CanUpdate` is initially set to `true`).
* **Added `GithubPluginUpdater` class:** This class handles communication with GitHub to retrieve the latest release information.
* **Updated version number:** The plugin version is bumped to `1.8.0.0`.
* **Removed unnecessary dependencies:** The build process now excludes unnecessary DLLs from the final package.

**Fixes issue #101.**
@maxisoft
Copy link
Owner

maxisoft commented Oct 13, 2024

I'm happy to announce that automatic update checks via GitHub have been implemented for the ASFFreeGames Plugin in the latest release (v1.8.0)!

While this feature maybe disabled by default (by ASF), you can now leverage it to keep your plugin up-to-date. To enable automatic updates, follow these steps:

  1. Update your ASFFreeGames Plugin: Download and install the latest version (v1.8.0) from the releases page
  2. Modify your ArchiSteamFarm configuration: Refer to the ArchiSteamFarm wiki page on PluginsUpdateList for detailed instructions (ArchiSteamFarm wiki):
    • This property allows you to define which plugins (including ASFFreeGames) are considered for automatic updates.

for reference, minimal ASF.json config to allow auto update looks like:

{
  "PluginsUpdateList": [
    "ASFFreeGames"
  ]
}

I hope this update proves helpful! Please don't hesitate to reach out if you have any further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants