Skip to content

Commit 5a13462

Browse files
committed
Add authentication for CurseForge downloads
1 parent 43c520c commit 5a13462

3 files changed

Lines changed: 17 additions & 26 deletions

File tree

changelog.md

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
1-
## Resourcify 1.6.1
2-
3-
### The future
4-
5-
This will be the last version that supports all the versions currently supported by Resourcify,
6-
in the next version only the following version will be supported:
7-
8-
- 1.21.2-1.21.4
9-
- 1.21.0-1.21.1
10-
- 1.20.0-1.20.1
11-
12-
This decision has been made to streamline the development process, the versions that we are continuing to support
13-
account for almost 80% of all downloads over the last 30 days. **After this point, all other versions will only receive
14-
critical updates**, this means if a source API changes or a common crash is found, this will still be fixed. But no new
15-
features will be added.
16-
17-
### Changes
18-
19-
- Added French translations. - [AuthenTiiq](https://github.com/AuthenTiiq) ([#62](https://github.com/DeDiamondPro/Resourcify/pull/62))
20-
- Added Portuguese (Brazil) translations. - [SeriousFreezing](https://github.com/seriousfreezing) ([#58](https://github.com/DeDiamondPro/Resourcify/pull/58))
21-
- Updated Korean translations. - [Koala0107](https://github.com/Koala0107) ([#57](https://github.com/DeDiamondPro/Resourcify/pull/57))
22-
- Updated Turkish translations. - [WinTone01](https://github.com/WinTone01) ([#60](https://github.com/DeDiamondPro/Resourcify/pull/60))
23-
- Fixed Resourcify not showing all Modrinth datapacks due to an API change.
24-
- Fixed sorting issues in CurseForge updating causing an older version to be shown as the new version.
25-
- Fixed update all button showing even when no uploads are available, and getting stuck on "updating..." when clicked.
1+
## Resourcify 1.6.2
2+
3+
4+
- Add authentication to CurseForge downloads, starting 16/06/2026 this will be a requirement to download any file from
5+
CurseForge, **CurseForge downloads will not work without this update, therefore it is HIGHLY recommended you update**.
6+
- Backported some QOL things from newer versions:
7+
- Buttons to forcefully exit update GUI
8+
- Better scaling handling
9+
- GUI scale option in config
10+
- Make hitboxes of some buttons bigger
11+
- Make Markdown images use linear scaling
12+
- ...
2613

2714
----------------------------------------------------------------------------------------------------
2815

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod_name = Resourcify
22
mod_id = resourcify
3-
mod_version = 1.6.1
3+
mod_version = 1.6.2
44

55
org.gradle.daemon=true
66
org.gradle.parallel=true

src/main/kotlin/dev/dediamondpro/resourcify/util/DownloadManager.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package dev.dediamondpro.resourcify.util
1919

20+
import dev.dediamondpro.resourcify.services.curseforge.CurseForgeService
2021
import org.apache.commons.compress.archivers.zip.ZipFile
2122
import java.io.File
2223
import java.net.URL
@@ -72,6 +73,9 @@ object DownloadManager {
7273
}
7374
downloadsInProgress[url] = DownloadData(runAsync {
7475
val con = url.setupConnection()
76+
if (url.host == "edge.forgecdn.net") {
77+
con.setRequestProperty("x-api-key", CurseForgeService.API_KEY)
78+
}
7579
downloadsInProgress[url]?.length = con.contentLength
7680
con.getEncodedInputStream().use {
7781
Files.copy(it!!, tempFile.toPath(), StandardCopyOption.REPLACE_EXISTING)

0 commit comments

Comments
 (0)