Skip to content

Commit bc3ae26

Browse files
committed
update workflows and scripts
1 parent e33eb0c commit bc3ae26

8 files changed

Lines changed: 683 additions & 434 deletions

File tree

.github/workflows/build.yml

Lines changed: 49 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,50 @@
1-
name: build
2-
3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- main
8-
- build-workflows
9-
10-
jobs:
11-
curse:
12-
name: Curseforge
13-
runs-on: windows-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
- run: .\config\mcinstanceloader\Pack.bat
17-
- uses: actions/setup-go@v3
18-
with:
19-
go-version: 1.18
20-
- run: go install github.com/packwiz/packwiz@latest
21-
- run: packwiz cf export
22-
- uses: actions/upload-artifact@v3
23-
with:
24-
path: ./*.zip
25-
modrinth:
26-
name: Modrinth
27-
runs-on: windows-latest
28-
steps:
29-
- uses: actions/checkout@v3
30-
- run: .\config\mcinstanceloader\Pack.bat
31-
- uses: actions/setup-go@v3
32-
with:
33-
go-version: 1.18
34-
- run: go install github.com/packwiz/packwiz@latest
35-
- run: packwiz mr export
36-
- uses: actions/upload-artifact@v3
37-
with:
38-
path: ./*.mrpack
39-
server:
40-
name: Server
41-
runs-on: windows-latest
42-
steps:
43-
- name: Set git to use LF
44-
run: |
45-
git config --global core.autocrlf false
46-
git config --global core.eol lf
47-
- uses: actions/checkout@v3
48-
- run: .\config\mcinstanceloader\Pack.bat
49-
- run: .\CreateServerPack.bat
50-
- uses: actions/upload-artifact@v3
51-
with:
1+
name: build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- build-workflows
9+
10+
jobs:
11+
curse:
12+
name: Curseforge
13+
runs-on: windows-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: 1.24.1
19+
- run: go install github.com/packwiz/packwiz@latest
20+
- run: packwiz cf export
21+
- uses: actions/upload-artifact@v4
22+
with:
23+
path: ./*.zip
24+
modrinth:
25+
name: Modrinth
26+
runs-on: windows-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-go@v5
30+
with:
31+
go-version: 1.24.1
32+
- run: go install github.com/packwiz/packwiz@latest
33+
- run: packwiz mr install filedirector
34+
- run: packwiz mr export
35+
- uses: actions/upload-artifact@v4
36+
with:
37+
path: ./*.mrpack
38+
server:
39+
name: Server
40+
runs-on: windows-latest
41+
steps:
42+
- name: Set git to use LF
43+
run: |
44+
git config --global core.autocrlf false
45+
git config --global core.eol lf
46+
- uses: actions/checkout@v4
47+
- run: .\CreateServerPack.bat
48+
- uses: actions/upload-artifact@v4
49+
with:
5250
path: ./*.zip

CreateServerPack.bat

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
jar -cfM TelomeraseServer.zip ^
2-
-C . armourersWorkshop ^
3-
-C . bansoukou ^
4-
-C . config ^
5-
-C . mods\mcinstanceloader* ^
6-
-C . scripts ^
7-
-C . server-icon.png ^
8-
-C . ServerStart.bat ^
9-
-C . ServerStartLinux.sh ^
1+
jar -cfM TelomeraseServer.zip ^
2+
-C . armourersWorkshop ^
3+
-C . config ^
4+
-C . mods\!mod-director-launchwrapper* ^
5+
-C . scripts ^
6+
-C . server-icon.png ^
7+
-C . ServerStart.bat ^
8+
-C . ServerStartLinux.sh ^
109
-C . settings.cfg

UpdateVersion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sed -i "s/version = \".*/version = \"$1\"/" pack.toml
22
sed -i "s/S:windowDisplayTitle=Telomerase .*/S:windowDisplayTitle=Telomerase $1/" ./config/itlt.cfg
33
sed -i "s/S:currentPackVersion=Telomerase .*/S:currentPackVersion=Telomerase $1/" ./config/LaunchGui.cfg
4-
echo "Telomerase $1" > ./resources/telomerase/version.txt
4+
echo "Telomerase $1" > ./config/txloader/forceload/telomerase/version.txt

config/LaunchGui.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ notice {
202202

203203
information {
204204
# The version of your pack currently being shipped. [default: ]
205-
S:currentPackVersion=Telomerase 1.20.3
205+
S:currentPackVersion=Telomerase 1.20.4-pre1
206206

207207
# URL to check for a new version. Required a raw text file.
208208
# See here for an example: https://raw.githubusercontent.com/TehNut/LaunchGui/1.7.10/version.txt [default: http://tehnut.info]

config/itlt.cfg

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# Configuration file
2-
3-
bitdetection {
4-
# If ShouldYellAt32BitUsers is set to true, this is the message that will be displayed to the user.
5-
S:ErrorMessage=You are using a 32 bit version of java. This is not recommended with this modpack.
6-
7-
# Set to true to make itlt yell at people attempting to use 32x java for the modpack.
8-
B:ShouldYellAt32BitUsers=true
9-
}
10-
11-
12-
display {
13-
# Set to true to make minecraft attempt to maximize itself on startup (This is kinda unstable right now, so don't trust it too much)
14-
B:ShouldMaximizeDisplay=false
15-
16-
# Set to true to load a custom icon from config;itlt;icon.png
17-
B:loadCustomIcon=true
18-
19-
# Set to true to attempt to get the display name of the pack of the info json file
20-
# This will take priority over windowDisplayTitle
21-
B:useTechnicDisplayName=true
22-
23-
# Set to true to attempt to use the icon assigned to the modpack by the technic launcher.
24-
# This will take priority over loadCustomIcon
25-
B:useTechnicIcon=true
26-
27-
# Change this value to change the name of the MineCraft window
28-
S:windowDisplayTitle=Telomerase 1.20.3
29-
}
30-
31-
32-
server {
33-
# Set to true to have a dedicated server added to the server list ingame. The server will not overwrite others servers.
34-
B:AddDedicatedServer=true
35-
36-
# The ip of the dedicated server to add.
37-
S:ServerIP=delightful-telomerase.ddnsfree.com
38-
39-
# The name of the dedicated server to add.
40-
S:ServerName=Delightful Telomerase
41-
}
42-
43-
1+
# Configuration file
2+
3+
bitdetection {
4+
# If ShouldYellAt32BitUsers is set to true, this is the message that will be displayed to the user.
5+
S:ErrorMessage=You are using a 32 bit version of java. This is not recommended with this modpack.
6+
7+
# Set to true to make itlt yell at people attempting to use 32x java for the modpack.
8+
B:ShouldYellAt32BitUsers=true
9+
}
10+
11+
12+
display {
13+
# Set to true to make minecraft attempt to maximize itself on startup (This is kinda unstable right now, so don't trust it too much)
14+
B:ShouldMaximizeDisplay=false
15+
16+
# Set to true to load a custom icon from config;itlt;icon.png
17+
B:loadCustomIcon=true
18+
19+
# Set to true to attempt to get the display name of the pack of the info json file
20+
# This will take priority over windowDisplayTitle
21+
B:useTechnicDisplayName=true
22+
23+
# Set to true to attempt to use the icon assigned to the modpack by the technic launcher.
24+
# This will take priority over loadCustomIcon
25+
B:useTechnicIcon=true
26+
27+
# Change this value to change the name of the MineCraft window
28+
S:windowDisplayTitle=Telomerase 1.20.4-pre1
29+
}
30+
31+
32+
server {
33+
# Set to true to have a dedicated server added to the server list ingame. The server will not overwrite others servers.
34+
B:AddDedicatedServer=true
35+
36+
# The ip of the dedicated server to add.
37+
S:ServerIP=delightful-telomerase.ddnsfree.com
38+
39+
# The name of the dedicated server to add.
40+
S:ServerName=Delightful Telomerase
41+
}
42+
43+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Telomerase 1.20.3
1+
Telomerase 1.20.4-pre1

0 commit comments

Comments
 (0)