269 Commits

Author SHA1 Message Date
Matt Artist
1786e47806
fix: convert download hashes to lower before compare (#199) 2023-03-11 18:21:21 +00:00
comp500
abf701560d Fix crash creating Modrinth packs with multiple files from the same CF project (fixes #197) 2023-03-11 00:09:26 +00:00
comp500
aeae76a569 Linter fixes (error handling, unused constants, raw strings) 2023-03-10 17:06:48 +00:00
comp500
da04eb7f13 Regression fix: filter Modrinth search results by game versions 2023-03-10 16:47:18 +00:00
comp500
58bb2ae4cf Fix GoReleaser CI versions 2023-03-10 16:43:49 +00:00
comp500
b2c1c39cb0 Update Nix flake to use Go 1.19 2023-03-10 16:42:08 +00:00
comp500
773944729f Update CI Go/GoReleaser versions, Go version in README 2023-03-10 16:40:50 +00:00
comp500
42d8370d0c Latest version fixes: correctly order preferences (fixes #198)
Both CurseForge and Modrinth preferences were not being done in a specific order - so
a file with a newer Minecraft version would not necessarily take priority over a file
with a more preferred loader (e.g. Quilt over Fabric) or a file with a newer release
date / CurseForge ID.
Also fixed a loop variable reference in the CurseForge loop, which caused eagerly resolved
(included in API response) file info to be inconsistent with the chosen version, and
added filtering for duplicate values in the acceptable-game-versions/primary version list
to ensure game versions are always compared properly (so the same index == same version).
2023-03-10 16:35:34 +00:00
comp500
00fcaaade3 Tweak goreleaser config 2023-02-18 01:44:32 +00:00
comp500
4b336e46e2 Prefer Quilt files to Fabric files from CurseForge (fixes #128) 2023-02-18 00:14:44 +00:00
comp500
d38d279d98 Prefer game versions according to acceptable versions list (fixes #181)
The acceptable versions list should now be specified in order of preference, where the last version is the most preferable Minecraft version
2023-02-14 16:10:06 +00:00
comp500
d667447a88 Compare Modrinth versions by release date, warn if inconsistent with version numbers 2023-02-14 12:16:24 +00:00
comp500
074e68f9b0 Exclude .DS_Store folder in default packwizignore 2023-02-12 22:27:50 +00:00
comp500
0598b07b9c Fix DisableAutoGenTag usage 2023-02-04 15:55:00 +00:00
Matt Artist
00c142c6ca
Add Curseforge's beta site to regex (#190) 2023-01-28 20:11:29 +00:00
comp500
672d22d0dd Fix deprecated uses of ioutil 2023-01-20 18:43:46 +00:00
comp500
79d3ed3957 Reword "mod"/"addon"/"install" to clearer terms across all commands (fixes #138) 2023-01-20 18:39:23 +00:00
comp500
eee067964a chore: update packwiz vendorSha256 2023-01-20 17:57:36 +00:00
comp500
d9db25afdb Update dependencies 2023-01-20 17:38:48 +00:00
comp500
945a608112 Modrinth: add support for Canvas shaders 2023-01-20 17:13:40 +00:00
comp500
b258d64520 chore: update packwiz vendorSha256 2023-01-20 06:46:27 +00:00
comp500
44f562927c Change datapack-path to datapack-folder 2023-01-20 06:45:19 +00:00
comp500
d498b13f3d chore: update packwiz vendorSha256 2023-01-20 05:41:02 +00:00
comp500
d57140c33a Modrinth: version number resolution (fixes #103) 2023-01-20 05:39:36 +00:00
comp500
c596179c5c Modrinth: fix loader folder lookup 2023-01-20 04:54:31 +00:00
comp500
66bf34c1c2 Modrinth: rename url categories list to be clearer 2023-01-20 04:53:23 +00:00
comp500
f3963ec169 Modrinth: detect default meta-folder, prefer mods to datapacks
Requires specifying datapack-path option to install datapacks (as the location varies between datapack loader mods)
2023-01-20 04:51:04 +00:00
comp500
94a74676c8 CurseForge: remove invalid comment 2023-01-17 04:53:39 +00:00
comp500
8937960d52 Modrinth: Parse non-mod and CDN URLs, bring more in line with CF impl 2023-01-17 04:51:47 +00:00
comp500
a25a651748 Remove duplicate (default "") in flag desc (fixes #172) 2022-12-13 13:27:50 +00:00
comp500
791bfcc30f Force-disable no-internal-hashes mode when serving (fixes #166) 2022-11-28 05:21:10 +00:00
comp500
dcea50a67b chore: update packwiz vendorSha256 2022-11-20 01:18:08 +00:00
comp500
ef757559f9 Fix nix branch 2022-11-20 01:16:49 +00:00
comp500
497585c38a Use FlexVer instead of semver for comparing Modrinth version numbers 2022-11-19 21:39:59 +00:00
comp500
6160c2ac01 Use FlexVer to get largest loader version (fixes Forge default version in init) 2022-11-19 20:25:38 +00:00
comp500
4f6528dcb5 Fix Modrinth exports of external files with omitted side field 2022-10-30 04:52:09 +00:00
comp500
f00dc9844f Allow any path under a Modrinth mod page 2022-10-11 01:19:04 +01:00
Tricked
c7c2ca786b
feat: add command for arbitrary URLs (#137)
* feat: install command for direct downloads

* use sha1 instead of sha256

* apply suggestions

* feat: parse urls instead of using hasprefix

* stop by default and add force flag

* Implement various fixes and improvements

Co-authored-by: Tricked <72335827+SkyBlockDev@users.noreply.github.com>
Co-authored-by: comp500 <comp500@users.noreply.github.com>
2022-08-27 00:08:25 +01:00
comp500
11671421ac -y/--yes flag for non-interactive mode (fixes #46)
Also makes Modrinth auto-accept search results with only 1 result, to be
consistent with CurseForge.
2022-08-25 04:47:18 +01:00
comp500
503232a3fa Implement dependency support for Modrinth (fixes #56) 2022-08-25 03:48:34 +01:00
Falxie_
89f189256e
fix: map modinfos by id (#152)
* fix: map modinfos by id

* chore: undo autoformat

* chore: restore formatting
2022-08-23 17:04:09 +01:00
comp500
f79de590d9 Batch metadata retrieval in CF detection (fixes #151) 2022-08-23 03:26:14 +01:00
Maxim Slipenko
4c68c7240f
Add index page to the development server (#146)
* Add index page to dev server

* Add target=_blank to packwiz-installer link

* Improve sentence about packwiz-installer

Co-authored-by: comp500 <comp500@users.noreply.github.com>
2022-08-19 04:17:28 +01:00
comp500
3f0ebebede chore: update packwiz vendorSha256 2022-08-02 01:54:47 +00:00
comp500
044c34e07c Move to go-modrinth lib (v2 API) and always supply UA in HTTP requests 2022-08-02 02:53:31 +01:00
comp500
5c02b31e20 Add rm as an alias for remove 2022-08-01 17:10:07 +01:00
comp500
1ed323e6c6 Fix HTTP link in liteloader maven listing 2022-07-19 03:17:54 +01:00
comp500
0d8c1762a3 Handle uppercase hashes properly (case-fold compare or normalise to lowercase) 2022-06-20 16:59:06 +01:00
Morgane Austreelis
b8d9727833
Nix support & automated update (#130)
* Add a nix flake

* Update flake deps and nix package's version nightly

* nix-flake: Update vendorSha256 on each push

An extra commit will be pushed only if needed

* Move flake.* into root directory

Update flake.lock

* nix-flake: Support more systems, commit hash as version

* Don't automatically update flake.lock
2022-06-16 21:34:31 +01:00
comp500
d5290ebd32 Eradicate variable-size integer types where not used by interface or as index (fixes #107) 2022-06-16 21:32:15 +01:00