Skip to content

Commit

Permalink
3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Jan 24, 2023
1 parent 8509c43 commit 2f6f6a7
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/actions/release-verification/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ description: Release verification
inputs:
curseforge-token:
description: CurseForge Token
required: true
required: false

modrinth-token:
description: Modrinth Token
required: true
required: false

maven-password:
description: Maven Password
required: true
required: false

runs:
using: composite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ assertFile("LICENSE")
val wrkDir: Path = System.getenv("GITHUB_WORKSPACE")?.let(Path::of) ?: Paths.get("./")
val gp: Map<String, String> = wrkDir.resolve("gradle.properties")
.let { Files.lines(it) }
.filter { it.isNotBlank() }
.filter { !it.trim().startsWith("#") }
.map { it.split("=") }
.collect(Collectors.toMap({ it[0].trim() }, { it[1].trim() }))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ val executor: ExecutorService = Executors.newCachedThreadPool(BasicThreadFactory
val wrkDir: Path = System.getenv("GITHUB_WORKSPACE")?.let(Path::of) ?: Paths.get("./")
val gp: Map<String, String> = wrkDir.resolve("gradle.properties")
.let { Files.lines(it) }
.filter { it.isNotBlank() }
.filter { !it.trim().startsWith("#") }
.map { it.split("=") }
.collect(Collectors.toMap({ it[0].trim() }, { it[1].trim() }))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fun getBranchName(branchName: String): String {
val wrkDir: Path = System.getenv("GITHUB_WORKSPACE")?.let(Path::of) ?: Paths.get("./")
val gp: Map<String, String> = wrkDir.resolve("gradle.properties")
.let { Files.lines(it) }
.filter { it.isNotBlank() }
.filter { !it.trim().startsWith("#") }
.map { it.split("=") }
.collect(Collectors.toMap({ it[0].trim() }, { it[1].trim() }))
Expand Down Expand Up @@ -143,9 +144,11 @@ if (allSemVer.isNotEmpty()) {
}
}

// if (compVer.none { toVersionOnly(it) == toVersionOnly(preDictPreVer) })
if (compVer.map { Semver(toVersionOnly(it)) }.distinct().none { it.isGreaterThanOrEqualTo(preDictPreVer) && it.isLowerThan(version) })
val compVo = compVer.map { Semver(toVersionOnly(it)) }.distinct()

if (compVo.any { it.isLowerThan(preDictPreVer) } && compVo.none { it.isGreaterThanOrEqualTo(preDictPreVer) && it.isLowerThan(version) })
throw Exception("Pre version does not exist/以前のバージョンが存在しません: $preDictPreVer")

} else {
println("First version")
}
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: The Setup
runs:
using: composite
steps:
- name: Cache
uses: actions/cache@v3
with:
path: .gradle/loom-cache
key: ${{ runner.os }}-gradle-loom-cache

- name: Setup JDK #JDKセットアップ
uses: actions/setup-java@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ val vcFile: File = wrkDir.resolve(vcName).toFile()

val gp: Map<String, String> = wrkDir.resolve("gradle.properties")
.let { Files.lines(it) }
.filter { it.isNotBlank() }
.filter { !it.trim().startsWith("#") }
.map { it.split("=") }
.collect(Collectors.toMap({ it[0].trim() }, { it[1].trim() }))
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
with:
fetch-depth: 0

- name: Cache
uses: actions/cache@v3
with:
path: .gradle/loom-cache
key: ${{ runner.os }}-gradle-loom-cache

- name: Setup
uses: ./.github/actions/setup

Expand Down
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Changelog

Changelog to track updates for this mod.
Add your changes to Unreleased if you want to commit.
Please write according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
Add your changes to Unreleased if you want to commit.
Please write according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]

### Added

- Add new utility class

### Changed

### Deprecated
Expand All @@ -20,22 +23,29 @@ Changelog to track updates for this mod.
## [3.3.0-beta.1] - 2023-01-22

### Changed

- Port MC1.19.3

### Removed

- Separated Fabric's built-in OBJ loader ([Special Model Loader](https://github.com/TeamFelnull/SpecialModelLoader))

### Fixed

- Fixed a problem that crashes without notifying when Architecture is not installed (Forge Only)

## [3.3.0-alpha.1] - 2023-01-18

### Changed

- Port MC1.19.3

### Removed

- Separated Fabric's built-in OBJ loader ([Special Model Loader](https://github.com/TeamFelnull/SpecialModelLoader))

[Unreleased]: https://github.com/TeamFelnull/OtyacraftEngine/compare/v3.3.0-beta.1...HEAD

[3.3.0-alpha.1]: https://github.com/TeamFelnull/OtyacraftEngine/commits/v3.3.0-alpha.1

[3.3.0-beta.1]: https://github.com/TeamFelnull/OtyacraftEngine/compare/v3.3.0-alpha.1...v3.3.0-beta.1
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ changelog {
Add your changes to Unreleased if you want to commit.
Please write according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
"""
combinePreReleases = true
combinePreReleases = false
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package dev.felnull.otyacraftengine.client.util;

import com.sun.jna.platform.win32.Shell32Util;
import com.sun.jna.platform.win32.ShlObj;
import net.minecraft.Util;
import org.jetbrains.annotations.Nullable;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
* ネイティブ関係のユーティリティ
*/
public class OENativeUtils {
@Nullable
public static Path getMyMusicFolder() {
try {
if (Util.getPlatform() == Util.OS.WINDOWS)
return Paths.get(Shell32Util.getSpecialFolderPath(ShlObj.CSIDL_MYMUSIC, false));
} catch (Throwable ignored) {
}
return null;
}

@Nullable
public static Path getMyPicturesFolder() {
try {
if (Util.getPlatform() == Util.OS.WINDOWS)
return Paths.get(Shell32Util.getSpecialFolderPath(ShlObj.CSIDL_MYPICTURES, false));
} catch (Throwable ignored) {
}
return null;
}
}
1 change: 0 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ loom {
configurations {
common
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
shadowIn
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentFabric.extendsFrom common
Expand Down
1 change: 0 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ loom {
configurations {
common
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
shadowIn
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentForge.extendsFrom common
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enabled_platforms=fabric,forge
#Mod
archives_base_name=otyacraftengine
mod_display_name=OtyacraftEngine
mod_version=3.3.0-beta.1
mod_version=3.3.0
#Dependencies
architectury_version=7.0.65
fabric_loader_version=0.14.11
Expand All @@ -17,7 +17,7 @@ felnull_version=1.75
#Upload
curesforge_id=400337
modrinth_id=iu3upNjC
release_type=beta
release_type=release
maven_put_url=https://maven.felnull.dev/
maven_group=dev.felnull
maven_put_pass=
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Tags for minecraft:block
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Tags for minecraft:block
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Advancements
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Advancements
24ed8addd22a4702b7c77f0cd605fc53795f19e4 data\otyacraftenginetest\advancements\otyacraftenginetest\root.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// 1.19.3 2023-01-21T16:38:04.658233 Otyacraft Engine Test/Input copy
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Input copy
183e554347c694dd0d75591721b58459636bd6f2 assets\otyacraftenginetest\copy_test\test.json
183e554347c694dd0d75591721b58459636bd6f2 assets\otyacraftenginetest\copy_test\fcoh\ikisugi.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// 1.19.3 2023-01-21T16:38:04.6592335 Otyacraft Engine Test/Recipes
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Recipes
afe1da46e75b1ff0ac6ea63110f2748c8aa84b96 data\otyacraftenginetest\recipes\test.json
d1ccb28bcc88e720665ccb40ab3bc54348a05587 data\otyacraftenginetest\advancements\recipes\food\test.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.19.3 2023-01-21T16:38:04.6602346 Otyacraft Engine Test/Model Definitions
// 1.19.3 2023-01-25T04:17:51.605033 Otyacraft Engine Test/Model Definitions
d40f279d0798e10ef4fe6a50dc7c0c3b22f8f3a2 assets\otyacraftenginetest\models\item\test_item.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// 1.19.3 2023-01-21T16:38:04.6572343 Otyacraft Engine Test/Tags for minecraft:item
// 1.19.3 2023-01-25T04:17:51.6030333 Otyacraft Engine Test/Tags for minecraft:item
7eb508a49db08b3875db67cd0383ae0d7494beb6 data\minecraft\tags\items\boats.json
cfa612cb64f7e213d984ca4431202690f594df8a data\c\tags\items\ender_pearls.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-01-21T16:38:04.6592335 Otyacraft Engine Test/Model Process
// 1.19.3 2023-01-25T04:17:51.6040356 Otyacraft Engine Test/Model Process
d949ee0f371db9fc9b8bceb58f7d74284b47ade3 assets\otyacraftenginetest\models\item\slide.json
8cb44dd96d67f1401394f517ced825ebc2b7728e assets\otyacraftenginetest\models\item\glock_17.json
b2c02147d1dbbc14042fc6c1a40e7f1072660b5b assets\otyacraftenginetest\models\item\magazine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"minecraft:ender_pearl"
]
}

0 comments on commit 2f6f6a7

Please sign in to comment.