251 Commits

Author SHA1 Message Date
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
Morgane Austreelis
d051932bbb
Add --cache flag to export commands (#133)
This option allow overriding the cache directory

An 'cache.directory' entry has also been added in the config
2022-06-09 00:36:24 +01:00
comp500
b8be3784f6 Improve Modrinth command errors 2022-06-08 23:36:15 +01:00
comp500
65688cf2b1 Prefer Quilt mods to Fabric mods when using Quilt (Modrinth-only) 2022-06-08 22:39:15 +01:00
comp500
f533e677ca Merge duplicate getLoaders methods into single core method 2022-06-08 22:34:50 +01:00
comp500
72fbc68256 Omit mode when empty (equivalent to mode "url") 2022-06-07 03:23:41 +01:00
comp500
d34728f347 Add support for CF files marked with Quilt (fixes #127) 2022-06-05 04:39:51 +01:00
Jamie Mansfield
57b554d5e3
Add flag to disable Modrinth restricted domains (#126)
* Update list of Modrinth approved domains

* Add flag to disable Modrinth restricted domains

This allows packwiz to produce .mrpack files with direct downloads,
for packs that aren't distributed on modrinth.com.
2022-06-02 17:40:51 +01:00
Aaron Harabedian
f47d71f203
Added command to list all mods (#125) 2022-05-31 17:02:42 +01:00
comp500
e71b63ea98 Check if download URL is null instead of allowModDistribution; fixes issue with null values for latter 2022-05-23 01:39:07 +01:00
comp500
bf2f060efc Fix lookup of old .toml files 2022-05-21 14:29:59 +01:00
comp500
fc3b5ff8ea Bump current pack format version number and auto-migrate loaded packs 2022-05-21 05:05:08 +01:00
comp500
dae133b73c Completed download implementation for Modrinth export 2022-05-21 05:00:21 +01:00
comp500
f3837af145 Completed download implementation for CF export
Added support for importing manual files and rehashing where necessary
Moved cache folder to "local" user folder
Cleaned up messages, saved index after importing
2022-05-21 03:40:00 +01:00
comp500
55f0e4a297 WIP: misc fixes, start updating CF/MR export to use download system 2022-05-20 18:13:43 +01:00
comp500
e73fa8c48a Continued work on download system (cache + cf meta now implemented) 2022-05-18 22:11:28 +01:00
comp500
30bc6d81bb WIP caching system for Modrinth/CurseForge pack export 2022-05-18 16:02:40 +01:00
comp500
3a6109c1f9 Merge branch 'master' into wip/new-curseforge-api 2022-05-17 01:07:04 +01:00
comp500
0f3096e251 Use the correct directories for non-mod files; use .pw.toml extension
The mods-folder option is now replaced with two new options: meta-folder and meta-folder-base
This allows non-mod files to use the correct directory based on their category; with correct
import of resource packs/etc from CurseForge packs, and the ability to override this behaviour.
To improve the reliability of packwiz metadata file marking (in the index), new files now use .pw.toml
as the extension - any extension can be used, but .pw.toml will now be automatically be
marked as a metafile regardless of folder, so you can easily move metadata files around.
Existing metadata files will still work (as metafile = true is set in the index); though in
the future .pw.toml may be required.
2022-05-16 21:06:10 +01:00