zkitefly / forge-maven-metadata

https://zkitefly.github.io/forge-maven-metadata/
0 stars 0 forks source link

Timestamp #2

Closed 3gf8jv4dv closed 1 month ago

3gf8jv4dv commented 1 month ago

The JSON provided by BMCLAPI includes the modified time of the build, but the timestamp of all builds in the JSON in this repo is 2333333333.

This results in HMCL where the time can be seen when selecting a Forge version when using BMCLAPI, but not when using the source from this repo.

I am not sure it is technically possible to achieve similar results as BMCLAPI, but I am asking anyway.

zkitefly commented 1 month ago

其实,hmcl 并没有使用 modified 属性,所以我就输入了个无意义的固定值

而且,modified属性似乎并不是时间属性,bmclapi 中也没有关于时间的相关属性

hmcl 也没有显示相应版本的修改时间

3gf8jv4dv commented 1 month ago

Oops. But the results confuse me.

BMCLAPI ![](https://github.com/user-attachments/assets/1166dbef-33a9-4d65-8747-b573a0ebb135)
zkitefly/forge-maven-metadata ![](https://github.com/user-attachments/assets/48ae8726-d593-431a-9522-84f7a87b21dd)
zkitefly commented 1 month ago

我想起来,是官方源(zkitefly/forge-maven-metadata)时,并不会读取 modified 属性, https://github.com/HMCL-dev/HMCL/pull/3251 仅仅是重新启用被遗弃的代码

而且 https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml 并没有提供关于 modified 相关参数,眼下的方法可能是读取 jar 中的数据,或者爬取网页数据

image

zkitefly commented 1 month ago

我在思考这个东西要不要做 :thinking:

3gf8jv4dv commented 1 month ago

我在思考这个东西要不要做 🤔

I think if it is too troublesome to implement, then forget it. If it is simple, give it a try.

zkitefly commented 1 month ago

我在思考这个东西要不要做 🤔

I think if it is too troublesome to implement, then forget it. If it is simple, give it a try.

先等 HMCL 合并了该 PR,我再着手做这个东西

zkitefly commented 1 month ago

image

完成!

zkitefly commented 1 month ago

时间稍微和 BMCLAPI 的有不同,但日期应该相同