Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/biud436/mv-app-builder

🏰 This tool allows you to easy to build the app for RPG Maker MV using Cordova.
https://github.com/biud436/mv-app-builder

cordova rpg-maker-mv

Last synced: about 1 month ago
JSON representation

🏰 This tool allows you to easy to build the app for RPG Maker MV using Cordova.

Awesome Lists containing this project

README

        

# Introduction
![Build Status](https://github.com/biud436/MV-App-Builder/actions/workflows/dotnet.yml/badge.svg)

This tool allows you to build your own Android APK File easily.

# Features

- Includes keystore generation features.
- Includes Self-Build.
- Includes automatic update system.
- Cordoba plugins support.
- Includes unused resource removal.
- Support for Korean, Japanese, and English.

# Screenshots

image

# Usage

1. Export as your desired folder such as desktop after removing unused resource in RPG Maker MV.

2. Open the this builder and then select the folder called ```/www``` there exists an ```index.html``` file.

3. In this tool, there is pre-written contents, but you have to modify as your own settings.

4. Change an ```unused remove resources``` as false after open up option window.

5. Click the build button and hold on until done.

6. if your cellphone is connected with personal computer using USB driver and others, you can install the apk file using google's adb tool automatically in your own devices.

```adb install -r app-release.apk```

7. if you build as on debug mode. it is possible to use remote debug in chrome://inspect of your chrome browser on Windows (supposed to be installed the adb tool on your computer)

# Requirements
This tool is based on C# Winform and Node.js and it has used a many of third-party tools. Some of them must be installed manually due to complexity of implementation. List that you must download is belows.

## .Net Framework v4.8 or above.

A higher version of the .Net Framework is required for a program developed with C# Winform to run.

β–Ά Download : https://dotnet.microsoft.com/download/dotnet-framework

## Android Studio & Android SDK

This tool must be needed the Android SDK(Android Software Development Kit) and JDK and more.
There are needed 28, 34 (latest) API specifically for building apk so you have to install using the ```Android Sdk Manager``` beforehand.

β–Ά Download : https://developer.android.com/studio/index.html?hl=ko

if you done installed them, you have to edit Environment Variables called ```path``` on Windows.

```cmd
%ANDROID_SDK_ROOT%
%ANDROID_SDK_ROOT%platform-tools\
```

# 2024λ…„ 2μ›” κΈ°μ€€

μ•„λ¬΄λž˜λ„ μ•ˆλ“œλ‘œμ΄λ“œκ°€ κΎΈμ€€νžˆ μ—…λ°μ΄νŠΈ 되고 있기 λ•Œλ¬Έμ—, μ•ˆλ“œλ‘œμ΄λ“œκ°€ 버전이 올라갈 λ•Œλ§ˆλ‹€ ν”„λ‘œκ·Έλž¨λ“€μ΄ λ™μž‘ν•˜μ§€ μ•ŠλŠ” λ¬Έμ œκ°€ λ°œμƒν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

ν”„λ‘œκ·Έλž¨ μ‚¬μš©μžκ°€ 아직도 μžˆμ„κ±°λΌκ³  μƒκ°λ˜μ§„ μ•ŠκΈ΄ ν•œλ°, μœ μ§€ 보수λ₯Ό μœ„ν•΄μ„œ 좔후에 μ•„λž˜μ™€ 같은 λ‚΄μš©μ„ ν™•μΈν•΄μ„œ νŒ¨μΉ˜ν•  μƒκ°μž…λ‹ˆλ‹€.

## OpenJDK 11

κΈ°μ‘΄μ—λŠ” cordovaλ₯Ό λΉ„λ‘―ν•œ 핡심이 λ˜λŠ” νˆ΄λ“€μ΄ κΈ°μ‘΄μ—λŠ” JDK8λ§Œμ„ μ§€μ›ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

β–Ά μ„€μΉ˜ 방법 : https://learn.microsoft.com/en-us/java/openjdk/download

ν•˜μ§€λ§Œ ν˜„μž¬ cordova 12.0.0 κΈ°μ€€μœΌλ‘œ JDK11 이상이 ν•„μš”ν•©λ‹ˆλ‹€.

## Android SDK Command-line Tools 8.0 μ„€μΉ˜

2024λ…„ 2μ›”(ν˜„μž¬ κΈ°μ€€ μ΅œμ‹ )에 μ•ˆλ“œλ‘œμ΄λ“œ μŠ€νŠœλ””μ˜€λ₯Ό μ„€μΉ˜ν•˜μ‹  뢄은 sdkmanagerκ°€ λ³„λ„λ‘œ μ„€μΉ˜λ˜μ§€ μ•ŠκΈ° λ•Œλ¬Έμ— μ•„λž˜μ™€ 같이 λ³„λ„λ‘œ μ„€μΉ˜λ₯Ό ν•˜μ…”μ•Ό ν•©λ‹ˆλ‹€.

image

## Cordova v12.0.0 이상 μ„€μΉ˜ 및 SDK Level 33 ν•„μš”

image

## Gradle μ„€μΉ˜

β–Ά μ„€μΉ˜ 방법 : https://gradle.org/install/

C: 에 압좕을 ν’€κ³ , C:\gradle-버전λͺ…\bin 을 PATH에 μΆ”κ°€ν•΄μ€˜μ•Ό ν•©λ‹ˆλ‹€ (gradle 7.6μ—μ„œ 정상 λ™μž‘ 확인)

## ν”„λ‘œμ νŠΈ κ²½λ‘œμ— ν•œκΈ€μ΄ μžˆμ„ 경우.

졜근 μœˆλ„μš° 11 μ„€μΉ˜ μ‹œ, 'λ¬Έμ„œ'와 같은 폴더가 ν•œκΈ€λ‘œ λ˜μ–΄μžˆμ–΄μ„œ λ¬Έμ œκ°€ 생기고 μžˆμŠ΅λ‹ˆλ‹€.

```
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
```

ν˜„μž¬ ν”„λ‘œκ·Έλž¨μ—μ„œλŠ” `λ¬Έμ„œ` 폴더에 μžλ™μœΌλ‘œ 폴더λ₯Ό λ§Œλ“€κ³  μžˆμ–΄ λ¬Έμ œκ°€ 되고 μžˆμŠ΅λ‹ˆλ‹€.

λ”°λΌμ„œ 경둜λ₯Ό `C:\Users\<μ‚¬μš©μžλͺ…>\AppData\Local\RPG Maker MV Cordova Builder` ν΄λ”λ‘œ λ³€κ²½ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

---

# κΈ°μ‘΄ μ„€λͺ…

## Node.js

μ½”λ₯΄λ„바와 λ―Έμ‚¬μš© λ¦¬μ†ŒμŠ€ μ œκ±°κΈ°λŠ” Node.js둜 개발된 ν”„λ‘œκ·Έλž¨μ΄κ³ , λ…Έλ“œ νŒ¨ν‚€μ§€ κ΄€λ¦¬μžλ₯Ό μ΄μš©ν•˜μ—¬ μ„€μΉ˜ 및 μ—…λ°μ΄νŠΈλ₯Ό ν•˜κ²Œ λ©λ‹ˆλ‹€. λ”°λΌμ„œ Node.jsκ°€ ν•„μš”ν•©λ‹ˆλ‹€.

β–Ά Download : https://nodejs.org/ko/download/

## Cordova v9.0.0

Node.js μ„€μΉ˜ 이후에 μˆ˜ν–‰ν•˜μ…”μ•Ό ν•©λ‹ˆλ‹€. 사싀 λ³Έ ν”„λ‘œκ·Έλž¨ λ‚΄μ—λŠ” μ½”λ₯΄λ„λ°” μ„€μΉ˜λ₯Ό 직접 μˆ˜ν–‰ν•˜λŠ” κΈ°λŠ₯이 λ”°λ‘œ μžˆμ§€λ§Œ, μ•„μ§κΉŒμ§„ νŠΉμ • μƒν™©μ—μ„œλ§Œ μˆ˜ν–‰λ©λ‹ˆλ‹€. λ”°λΌμ„œ 직접 μ„€μΉ˜λ₯Ό ν•΄μ£Όμ…”μ•Ό ν•©λ‹ˆλ‹€. 과정은 ctrl + rλ₯Ό λˆ„λ₯Έ ν›„, μ‹€ν–‰μ—μ„œ cmd(λͺ…λ Ή ν”„λ‘¬ν”„νŠΈ)λ₯Ό μ—¬μ‹  ν›„, ```npm install -g cordova```λ₯Ό μž…λ ₯ν•˜λ©΄ μ„€μΉ˜λ©λ‹ˆλ‹€.

β–Ά μ„€μΉ˜ 방법 : https://www.npmjs.com/package/cordova#installation

## JDK 8
JDK 8μ—μ„œλ§Œ μ•ˆλ“œλ‘œμ΄λ“œ API κ°€μ Έμ˜€κΈ° λͺ…령이 μ •μƒμ μœΌλ‘œ λ™μž‘ν•˜κΈ° λ•Œλ¬Έμ— JDK 8 μ„€μΉ˜κ°€ ν•„μš”ν•©λ‹ˆλ‹€.

β–Ά Download : https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

JDKκ°€ μ •μƒμ μœΌλ‘œ μΈμ‹λ˜λ €λ©΄ μœˆλ„μš°μ¦ˆ ν™˜κ²½ λ³€μˆ˜λ₯Ό μ„€μ •ν•΄μ•Ό ν•©λ‹ˆλ‹€. ν™˜κ²½ λ³€μˆ˜λŠ” Windows 10이라면 μ‹œμž‘ λ²„νŠΌ μ˜†μ— 돋보기 λͺ¨μ–‘μ˜ λ²„νŠΌμ„ 눌러 ν™˜κ²½ λ³€μˆ˜λΌκ³  치면 섀정이 κ°€λŠ₯ν•©λ‹ˆλ‹€.

β–Ά ν™˜κ²½ λ³€μˆ˜ JAVA_HOME μ„€μ • : https://zetawiki.com/wiki/%EC%9C%88%EB%8F%84%EC%9A%B0_JAVA_HOME_%ED%99%98%EA%B2%BD%EB%B3%80%EC%88%98_%EC%84%A4%EC%A0%95

## Windows 10 이상 (Windows 7은 ꡬ동 ν™•μΈλ˜μ§€ μ•Šμ•˜μŒ)

λ³Έ ν”„λ‘œκ·Έλž¨μ΄ ꡬ동 되렀면 ```robocopy``` λͺ…령이 μ œλŒ€λ‘œ μ‹€ν–‰λ˜λŠ” μ‹œμŠ€ν…œμ„ μ‚¬μš©ν•΄μ•Ό ν•©λ‹ˆλ‹€. ```robocopy``` λͺ…령은 ```xcopy```μ™€λŠ” 달리 μ΅œμ†Œ 8 μ“°λ ˆλ“œλ‘œ λ™μ‹œμ— νŒŒμΌμ„ 고속 볡사할 수 μžˆλŠ” ```Windows``` 파일 볡사 ν”„λ‘œκ·Έλž¨μž…λ‹ˆλ‹€. λ³Έ ν”„λ‘œκ·Έλž¨μ€ νŒŒμΌμ„ λͺ©μ  폴더에 κ³ μ†μœΌλ‘œ νŒŒμΌμ„ 볡사 ν•˜κ²Œ λ©λ‹ˆλ‹€. 이 κΈ°λŠ₯은 λ―Έμ‚¬μš© λ¦¬μ†ŒμŠ€ 제거 κΈ°λŠ₯을 μ‚¬μš©ν•˜μ§€ μ•Šμ„ λ•Œμ—λ§Œ λ™μž‘ν•©λ‹ˆλ‹€. λ―Έμ‚¬μš© λ¦¬μ†ŒμŠ€ 제거 κΈ°λŠ₯을 μ‚¬μš©ν•  땐 νŒŒμΌμ„ μ„ λ³„μ μœΌλ‘œ 볡사 ν•©λ‹ˆλ‹€.

# ν˜Έν™˜ ν”ŒλŸ¬κ·ΈμΈ

μ•± λΉŒλ“œ μ‹œ μΆ”κ°€ κΈ°λŠ₯을 μ›ν•˜μ‹œλŠ” 뢄듀이 μžˆμœΌμ‹œλ©΄ λ‹€μŒ νŒŒμΌλ“€μ„ λ‚΄λ € 받은 ν›„, 압좕을 ν•΄μ œν•˜κ³  ```js/plugins``` 폴더에 λ„£μ–΄μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.

μ’…λ£Œ λŒ€ν™” μƒμžλŠ” 기본적으둜 ν¬ν•¨λ˜μ–΄μžˆμ§€ μ•ŠμŠ΅λ‹ˆλ‹€. κ°•μ œλ‘œ 포함할 μ‹œ λΉŒλ“œ μ‹œκ°„μ΄ μ’€ μΆ”κ°€λ˜κΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

백슀페이슀 λ²„νŠΌ ν„°μΉ˜ μ‹œ μ’…λ£Œ λŒ€ν™” μƒμž λ„μš°κΈ° - λ‹€μš΄λ‘œλ“œ[ZIP]

μ• λ“œλͺΉμ˜ 경우, ν”ŒλŸ¬κ·ΈμΈ μΆ”κ°€ κ³Όμ •μ—μ„œ νŠΉμ • 인자λ₯Ό λ„˜κ²¨μ•Ό ν•©λ‹ˆλ‹€. ν•΄λ‹Ή μ„ΈνŒ…μ€ ν”„λ‘œκ·Έλž¨μ—μ„œ μžλ™μœΌλ‘œ μ§€μ›ν•˜λŠ”λ°μš”.

μ• λ“œλͺΉ κ΄‘κ³  λͺ¨λ“ˆ (λ°°λ„ˆ, λ™μ˜μƒ κ΄‘κ³ , λ³΄μƒν˜• κ΄‘κ³ ) - λ‹€μš΄λ‘œλ“œ[ZIP]

μžλ™μœΌλ‘œ μ„ΈνŒ…μ„ ν•˜λ €λ©΄ λ‹€μŒ ν”ŒλŸ¬κ·ΈμΈμ„ μΆ”κ°€λ‘œ λ„£μ–΄μ•Ό ν•©λ‹ˆλ‹€.

​AdmobSettings.js - λ‹€μš΄λ‘œλ“œ[ZIP]

β€‹ν”ŒλŸ¬κ·ΈμΈμ˜ 주석 λΆ€λΆ„(/*: ~ */ 사이 λΆ€λΆ„)에 ```@cordova_plugin cordova-plugin-admob-free```둜 μ‹œμž‘ν•˜λŠ” 라인이 μžˆμŠ΅λ‹ˆλ‹€.

```js
/*:
* @cordova_plugin cordova-plugin-admob-free --save --variable ADMOB_APP_ID="ca-app-pub~μƒλž΅
*/
```

ν…μŠ€νŠΈ 에디터λ₯Ό μ΄μš©ν•˜μ—¬ ```ADMOB_APP_ID``` λΆ€λΆ„μ˜ ν…ŒμŠ€νŠΈ κΈ°κΈ° 용 ```APP ID```λ₯Ό μ• λ“œλͺΉ μ‚¬μ΄νŠΈμ— μžˆλŠ” μ•± ID둜 μˆ˜μ •μ„ ν•΄μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.

ν™”λ©΄ 꺼짐 방지 ν”ŒλŸ¬κ·ΈμΈμ€ ν•„μˆ˜ κΈ°λŠ₯μ΄λ―€λ‘œ κ°•μ œλ‘œ μΆ”κ°€ λ©λ‹ˆλ‹€.

# ν”ŒλŸ¬κ·ΈμΈ 개발자 팁

κ²Œμž„ 폴더λ₯Ό μ„€μ •ν•  λ•Œ ν”ŒλŸ¬κ·ΈμΈμ΄ μžλ™ μΈμ‹λ˜λŠ” μ›λ¦¬λŠ” ν”ŒλŸ¬κ·ΈμΈ κ΄€λ¦¬μžμ˜ 원리와 λ™μΌν•˜κ²Œ μ½”λ©˜νŠΈλ₯Ό νŒŒμ‹±ν•˜λŠ” λ°©μ‹μž…λ‹ˆλ‹€.

λ”°λΌμ„œ λ‹€μŒκ³Ό 같은 양식을 주석에 μ‚½μž…ν•΄μ•Ό ν•©λ‹ˆλ‹€.

μ΄λ ‡κ²Œ ν•˜λ©΄ ν”„λ‘œμ νŠΈλ₯Ό 뢈러올 λ•Œ ```cordova-plugin-dialogs``` λΌλŠ” ν”ŒλŸ¬κ·ΈμΈμ΄ μžλ™μœΌλ‘œ λΉŒλ“œ 과정에 μΆ”κ°€λ©λ‹ˆλ‹€.

μ΅œμ ν™”λ₯Ό μœ„ν•΄ 라인을 μ΅œμ†Œν•œμœΌλ‘œ μ½μœΌλ‹ˆ μ΅œμƒλ‹¨ 뢀뢄에 λ„£μ–΄μ£Όμ„Έμš”.

```js
/*:
* @cordova_plugin cordova-plugin-dialogs
*/
```

# Bug Report

λΉŒλ“œ 쀑에 였λ₯˜κ°€ λ°œμƒν–ˆμ„ λ•Œ, ```Log``` μ°½μ—μ„œ 였λ₯Έμͺ½ λ²„νŠΌμ„ λˆ„λ₯΄λ©΄ λΉŒλ“œ 둜그 μ €μž₯ λ²„νŠΌμ„ μ‚¬μš©ν•˜λ©΄ 둜그 μ €μž₯이 κ°€λŠ₯ν•©λ‹ˆλ‹€.

μ•„λž˜ μ‚¬μ΄νŠΈμ— 버그λ₯Ό μ œλ³΄ν•  λ•Œ λΉŒλ“œ λ‘œκ·Έλ„ 같이 μ˜¬λ €μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.

정상적인 λΉŒλ“œ 둜그 :

```powershell
--- μ€€λΉ„ ---
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
-- keytool을 μ°Ύμ•˜μŠ΅λ‹ˆλ‹€.
9.0.0 ([email protected])

μ•ˆλ“œλ‘œμ΄λ“œ SDK / ANDROID_SDK_ROOTλ₯Ό μ°Ύμ•˜μŠ΅λ‹ˆλ‹€ : E:\Android\sdk\
[SDK]==========================================
android-19
android-23
android-26
android-27
android-28
android-29
==============================================
--- ν•„μš”ν•œ λͺ¨λ“  ν”„λ‘œκ·Έλž¨μ΄ μ„€μΉ˜λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.
ν”„λ‘œκ·Έλž¨μ΄ μ΅œμ‹  버전인지 확인 μ€‘μž…λ‹ˆλ‹€... (1초 미만)
μ΅œμ‹  버전을 μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
μ½”λ₯΄λ„λ°”κ°€ μ΅œμ‹  버전인지 확인 μ€‘μž…λ‹ˆλ‹€... (5초 미만)
ν˜„μž¬ μ΅œμ‹  λ²„μ „μ˜ μ½”λ₯΄λ„λ°”λ₯Ό μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.(00:00:04.7386189)
```

ν•œκΈ€λ‘œ 된 파일λͺ…은 아직 ꡬ글 μ•ˆλ“œλ‘œμ΄λ“œ μ•± λΉŒλ“œμ—μ„œ μ§€μ›ν•˜μ§€ μ•ŠμœΌλ‹ˆ 파일λͺ…은 λ°˜λ“œμ‹œ μ˜μ–΄μ—¬μ•Ό ν•©λ‹ˆλ‹€.

μœˆλ„μš° μ‚¬μš©μž 계정 λͺ…κ³Ό κ·Έ 뢀속 폴더듀도 μ˜μ–΄λ‘œ λ˜μ–΄μžˆμ–΄μ•Ό ν•©λ‹ˆλ‹€.

https://github.com/biud436/MV-App-Builder/issues

# Download
λ‹€μŒ λ§ν¬μ—μ„œ μ΅œμ‹  버전을 λ‚΄λ € λ°›μœΌμ‹œκΈ° λ°”λžλ‹ˆλ‹€ (μžλ™ μ—…λ°μ΄νŠΈ κΈ°λŠ₯ 있음)

링크 : https://github.com/biud436/MV-App-Builder/releases