Skip to content

Commit 554f57f

Browse files
committed
Default recommendations are now loaded from code instead of an external JSON file.
1 parent e148f1e commit 554f57f

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/build-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: '"cd bin && OSRLaunchpad.bat" | Out-File -FilePath OpenStarRuler-Launchpad\OSRLauncher.bat -Encoding "ascii"'
3535
shell: powershell
3636
- name: Pack standalone release
37-
run: New-Item -Name "OpenStarRuler-Launchpad" -ItemType "directory"; Rename-Item README.md README.txt; Copy-Item -Path README.txt,history.json,LICENSE.txt,build/image/*,OSRLaunchpad.bat -Destination "OpenStarRuler-Launchpad" -Recurse; Compress-Archive -Path "OpenStarRuler-Launchpad" -DestinationPath "standalone-windows.zip"
37+
run: New-Item -Name "OpenStarRuler-Launchpad" -ItemType "directory"; Rename-Item README.md README.txt; Copy-Item -Path README.txt,LICENSE.txt,build/image/*,OSRLaunchpad.bat -Destination "OpenStarRuler-Launchpad" -Recurse; Compress-Archive -Path "OpenStarRuler-Launchpad" -DestinationPath "standalone-windows.zip"
3838
shell: powershell
3939
- name: Upload standalone release
4040
uses: actions/upload-artifact@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.idea/sonarlint
55
.DS_Store
66
config.json
7+
history.json
78
out
89
repositories/*
910
Thumbs.db

build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ application {
6161
from(project.file("README.md")) {
6262
rename("README.md", "README.txt")
6363
}
64-
from(project.file("history.json"))
6564
from(project.file("LICENSE.txt"))
6665
}
6766
}

history.json

-1
This file was deleted.

src/main/java/io/github/openstarruler/launchpad/adapter/Recommendations.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ import java.io.FileWriter
77
import java.io.IOException
88

99
class Recommendations private constructor() {
10-
private val history: MutableList<String> = mutableListOf()
10+
private val history: MutableList<String> = mutableListOf(
11+
"github.com/OpenSRProject/OpenStarRuler-Modpack",
12+
"github.com/DaloLorn/Rising-Stars",
13+
"github.com/Skeletonxf/star-ruler-2-mod-ce",
14+
"github.com/sol-oriens/Shores-of-Infinity",
15+
"github.com/Vandaria/SR2-Lost-Sector"
16+
)
1117

1218
@Throws(IOException::class)
1319
fun save() {

0 commit comments

Comments
 (0)