-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed the use of database(s) and its dependencies. * Added new "AddonVault"-struct singleton that will hold the addons for easy access. * Added new "SystemVault"-struct singleton that will hold the system configuration for easy access * Added new config files for both system configurations and addons configuration - to be used instead of a database. * Moved away from using JSON to TOML - easier to read and understand for pesky commoners~ Keep in mind that in TOML everything needs to be part of a "type", just having hanging values and then say, "read this as array of values" won't work. * Updated FUTURE.md with new goals and plans - the top section about the updater is urgent changes as the updater is not working as intended right now.
- Loading branch information
1 parent
a12fa73
commit a2a9467
Showing
40 changed files
with
805 additions
and
1,453 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[config_elements]] | ||
name = "extract.addon.path" | ||
value = "/home/[YOUR_HOST_NAME_HERE]/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_retail_/Interface/AddOns" | ||
|
||
[[config_elements]] | ||
name = "browser.download.dir" | ||
value = "/home/[YOUR_HOST_NAME_HERE]/Downloads/goaddons_download" | ||
|
||
[[config_elements]] | ||
name = "docker.url" | ||
value = "ws://localhost:9222" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[[user_agent]] | ||
id = "Win537" | ||
value = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" | ||
|
||
[[user_agent]] | ||
id = "Mac86" | ||
value = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:86.0) Gecko/20100101 Firefox/86.0" | ||
|
||
[[user_agent]] | ||
id = "Win88" | ||
value = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.705.50 Safari/537.36 Edg/88.0.705.50" | ||
|
||
[[user_agent]] | ||
id = "Mac605" | ||
value = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# Future plans for GoAddons | ||
|
||
## Tests | ||
1. Some tests | ||
2. aaaand some more test | ||
3. and after that even more tests | ||
|
||
## Make Docker dependency deprecated | ||
1. Change from MySQL to a simple SQLite database that makes it easier to ship instead of requiring Docker. | ||
2. Look into possibility of not requiring the Docker Chrome browser when downloading files. | ||
## Fix the updater | ||
1. *SOLVED* ~For some reason the downloaded files are owned by ROOT:ROOT. This is not OK, they should be owned by current OS user (perhaps configurable?)~ | ||
2. *SOLVED* ~Make it non-parallel - there is no need for concurrency, there is risk for website throttling/blocking us plus extracting is fast enough as is~ | ||
3. *SOLVED* ~Make the extracting more simple - anything in the download volume that ends with .zip should be extracted and ultimately removed~ | ||
4. Look into possibility of not requiring the Docker Chrome browser when downloading files - the fewer dependencies the better | ||
|
||
## Refactoring and generic clean-up | ||
|
||
1. Part of the clean-up and refactoring involves more restrict code styling and that is something that is coming! | ||
*. Discuss the possibility of using formatters e.g. gofmt or perhaps Go linters? | ||
2. Refactoring and making code easier to read and follow (the less jumping around the better) | ||
3. Generic Clean-up and whatever that would entail! | ||
|
||
## Config | ||
|
||
1. Allow more configurations - perhaps look into some config lib that can help | ||
2. *SOLVED* ~Look into possibly leaving JSON for the config and instead use YAML~ | ||
|
||
## Cli | ||
|
||
1. Leave behind the current and basic CLI and look into uses something like ncurses or alternatives for it in Golang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.