File tree 3 files changed +26
-21
lines changed
src/main/java/net/ccbluex/liquidbounce
3 files changed +26
-21
lines changed Original file line number Diff line number Diff line change 1
- name : build
1
+ name : Build
2
2
3
3
on :
4
- - push
4
+ push :
5
+ branches : [ legacy ]
6
+ pull_request :
7
+ branches : [ legacy ]
5
8
6
9
jobs :
7
10
build :
8
11
runs-on : ubuntu-latest
9
12
steps :
10
- - name : Checkout repository
11
- uses : actions/checkout@v2
13
+ - name : Checkout repository and submodules
14
+ uses : actions/checkout@v4
12
15
with :
13
16
submodules : recursive
14
- - name : Java setup
15
- uses : actions/setup-java@v2
17
+ - name : Setup java
18
+ uses : actions/setup-java@v4
16
19
with :
17
- distribution : " zulu "
20
+ distribution : " adopt "
18
21
java-version : 8
19
22
cache : " gradle"
20
- - name : Set outputs
21
- id : vars
22
- run : echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
23
23
- name : Build
24
- run : chmod +x ./gradlew && ./gradlew setupCiWorkspace && ./gradlew build
25
- - name : Rename build artifacts
26
- run : mv build/libs/FDPClient-*.jar build/libs/FDPClient-build.jar
27
- - name : Upload build artifacts
28
- uses : actions/upload-artifact@v2
29
- with :
30
- name : FDPClient
31
- path : build/libs/FDPClient-build.jar
24
+ run : ./gradlew setupCiWorkspace && ./gradlew build
25
+ - name : Upload artifact
26
+ run : |
27
+ cd build/libs
28
+ export JAR=$(find . -regex '.*fdpclient-b[0-9|.]*\.jar')
29
+ export FDP_VERSION=$(echo $JAR | sed -r 's/.\/fdpclient-([a-zA-Z][0-9]+)\.jar/\1/')
30
+ export MINECRAFT_VERSION='1.8.9'
31
+ echo Version: $FDP_VERSION, Minecraft: $MINECRAFT_VERSION
32
+ cp $JAR zip/fdpclient.jar
33
+ cd zip
34
+ zip -r fdpclient.zip *
35
+ md5sum fdpclient.zip
36
+ curl --connect-timeout 30 -m 300 -X POST -F "[email protected] " -H "Authorization: ${{ secrets.NIGHTLY_PASS }}" -F "gh_id=${{ github.event.head_commit.id }}" -F "gh_ref=${{ github.ref }}" -F "gh_message=${{ github.event.head_commit.message }}" -F "gh_timestamp=${{ github.event.head_commit.timestamp }}" -F "fdp_version=$FDP_VERSION" -F "mc_version=$MINECRAFT_VERSION" -F "jre_version=8" -F "subsystem=forge" https://api.liquidbounce.net/api/v1/version/new
Original file line number Diff line number Diff line change 1
1
org.gradle.jvmargs =-Xmx3g
2
2
3
- mod_version =b5
3
+ mod_version =b6
4
4
maven_group =net.ccbluex
5
5
archives_base_name =FDPClient
6
6
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ object FDPClient {
62
62
const val CLIENT_AUTHOR = " Zywl 1zuna"
63
63
const val CLIENT_CLOUD = " https://cloud.liquidbounce.net/LiquidBounce"
64
64
const val CLIENT_WEBSITE = " fdpinfo.github.io"
65
- const val CLIENT_VERSION = " b5 "
65
+ const val CLIENT_VERSION = " b6 "
66
66
67
67
val clientVersionText = gitInfo[" git.build.version" ]?.toString() ? : " unknown"
68
68
val clientVersionNumber = clientVersionText.substring(1 ).toIntOrNull() ? : 0 // version format: "b<VERSION>" on legacy
@@ -73,7 +73,7 @@ object FDPClient {
73
73
* Defines if the client is in development mode.
74
74
* This will enable update checking on commit time instead of regular legacy versioning.
75
75
*/
76
- const val IN_DEV = true
76
+ const val IN_DEV = false
77
77
78
78
val clientTitle = CLIENT_NAME + " " + clientVersionText + " " + clientCommit + " | " + if (IN_DEV ) " | DEVELOPMENT BUILD" else " "
79
79
You can’t perform that action at this time.
0 commit comments