Tweak: only build release branch in circle ci

This commit is contained in:
33 committed 2023-01-04 12:01:48 +08:00
1 parent bd642d0106
commit 077551e161
3 files changed
+24 -17

No files matched your search

+11 -7
View File
@@ -28,13 +28,17 @@ jobs:
name: Build
command: |
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $CIRCLE_SHA1)
./gradlew clean build
- run:
name: Publish
command: |
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $CIRCLE_SHA1)
./gradlew upload --debug --stacktrace
# ./gradlew publishGprPublicationToGitHubPackagesRepository
./gradlew clean build --stacktrace
- when:
condition:
equal: [ 14-release, << pipeline.git.branch >> ]
steps:
- run:
name: Publish
command: |
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $CIRCLE_SHA1)
./gradlew upload --info --stacktrace
# ./gradlew publishGprPublicationToGitHubPackagesRepository
- store_artifacts:
path: ./build/libs
@@ -27,7 +27,7 @@ import customskinloader.utils.MinecraftUtil;
/**
* Custom skin loader mod for Minecraft.
*
* @author (C) Jeremy Lam [JLChnToZ] 2013-2014 & Alexander Xia [xfl03] 2014-2020
* @author Jeremy Lam [JLChnToZ] 2013-2014 & Alexander Xia [xfl03] 2014-2023
* @version @MOD_FULL_VERSION@
*/
public class CustomSkinLoader {
@@ -198,8 +198,8 @@ public class CustomSkinLoader {
String credential = MinecraftUtil.getCredential(gameProfile);
//CustomSkinLoader needs username to load standard skin, if username not exist, only textures in NBT can be used
//Authlib 3.11.50 makes empty username to "\u0020"
if (username == null || username.isEmpty() || username.equals("\u0020") || credential == null) {
//Authlib 3.11.50 makes empty username to " "
if (username == null || username.isEmpty() || username.equals(" ") || credential == null) {
return dynamicSkullManager.getTexture(gameProfile);
}
if (config.forceUpdateSkull ? profileCache.isReady(credential) : profileCache.isExist(credential)) {
+10 -7
View File
@@ -78,26 +78,29 @@ You can also use 'ExtraList' which makes it easier for users to add your server
See [CONTRIBUTING.md](CONTRIBUTING.md)
## Copyright & LICENSE
### Major Contributor
- 2013-2014 Jeremy Lam([JLChnToZ](https://github.com/JLChnToZ))
- 2014-2023 Alexander Xia([xfl03](https://github.com/xfl03))
- 2020-2023 [ZekerZhayard](https://github.com/ZekerZhayard)
### Binary File
You could not modify binary file.
Feel free to use and share this mod and unmodified file in anyway like modpack.
When using in modpack, you must put 'CustomSkinLoader' in mod list.
You could not repost this mod to any website without permission.
You could not earn money with this mod excluding modpack.
### Source Code
#### Package 'customskinloader'
Including some codes from
- [AsteriskTeam/TabIconHackForge](http://git.oschina.net/AsteriskTeam/TabIconHackForge) (GPLv3)
- [RecursiveG/UniSkinMod](https://github.com/RecursiveG/UniSkinMod) (GPLv3)
- [NekoCaffeine/Alchemy](https://github.com/NekoCaffeine/Alchemy) (GPLv3)
Copyright © 2013-2014 Jeremy Lam "JLChnToZ".
Copyright © 2014-2019 Alexander Xia "xfl03".
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
```
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
```
GPLv3: http://www.gnu.org/licenses/gpl.html
You should change the name of the package to avoid others' misunderstanding.