Skip to content

Commit

Permalink
디펜던시 Embed
Browse files Browse the repository at this point in the history
 - ini4j, fontbox 디펜던시를 Embed시킴

naraechat.ini 파일이 없는 상태에서 최초 실행시 크래시나던 문제 수정
  • Loading branch information
sokcuri committed Sep 11, 2019
1 parent 14eb1ba commit cd6edd6
Show file tree
Hide file tree
Showing 53 changed files with 43 additions and 7,135 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 0.6.0
폰트 변경기능 추가
폰트 변경기능을 추가했습니다
- 마인크래프트 설정 > 언어에서 폰트 버튼을 눌러 폰트 변경 페이지로 이동할 수 있습니다
- 기본값으로는 맑은 고딕이 지정됩니다
- Over Sample을 0.0pt로 조정하면 기본 마인크래프트 폰트로 보여집니다

## 0.5.0
옵티파인 1.14.4_HD_U_F4_pre3 호환
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* [홈페이지](https://github.com/sokcuri/NaraeChat)
* [다운로드](https://github.com/sokcuri/NaraeChat/releases)
* [업데이트 기록](CHANGELOG.md)
* 버전: 1.14.4-0.6.0 (2019-09-10)
* 버전: 1.14.4-0.6.0 (2019-09-11)
* 마인크래프트 : 1.14.4
* 포지 : 1.14.4-28.0.55
* [라이센스 : LGPL 3.0](LICENSE.txt)
Expand Down
34 changes: 33 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,29 @@ buildscript {
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.0"
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.

compileJava.options.encoding = 'UTF-8'
version = '1.14.4-0.6.0'
group = 'kr.neko.sokcuri.naraechat' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'naraechat'

repositories {
mavenCentral()
}

configurations {
embed
compile.extendsFrom(embed)
}

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

minecraft {
Expand All @@ -37,10 +50,29 @@ minecraft {
}
}
}

dependencies {
minecraft 'net.minecraftforge:forge:1.14.4-28.0.55'
compile 'net.java.dev.jna:jna:4.1.0'
compile 'net.java.dev.jna:jna-platform:4.1.0'
compile 'org.apache.commons:commons-text:1.7'
compile 'org.apache.pdfbox:fontbox:2.0.2'
embed 'org.apache.pdfbox:fontbox:2.0.16'
embed group: 'org.apache.pdfbox', name: 'fontbox', version: '2.0.16'
embed 'org.ini4j:ini4j:0.5.1'
embed group: 'org.ini4j', name: 'ini4j', version: '0.5.1'
}

jar {
manifest {
attributes([
"Specification-Title": "naraechat",
"Specification-Vendor": "naraechat",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"naraechat",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kr.neko.sokcuri.naraechat.Config;

import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.fml.config.ModConfig;
import org.ini4j.Wini;

Expand All @@ -13,16 +12,18 @@ public final class ConfigHelper {
static {
try {
File file = new File("naraechat.ini");
if(!file.exists())
{
if (!file.exists()) {
file.createNewFile();
ini = new Wini(file);
setFontFamily("맑은 고딕");
setFontSize(12.0f);
setOversample(4.0f);
setShiftX(-0.3f);
setShiftY(0.3f);
ini.load(file);
} else {
ini = new Wini(file);
}
ini = new Wini(file);
} catch (IOException e) {
e.printStackTrace();
}
Expand Down
267 changes: 0 additions & 267 deletions src/main/java/org/ini4j/BasicMultiMap.java

This file was deleted.

0 comments on commit cd6edd6

Please sign in to comment.