<%= pack.name %>
+manifest 키: <%= pack.file %>
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..618440d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules +dist +release +logs/*.log +*.tsbuildinfo diff --git a/README.md b/README.md index 45a08e7..08fe73d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,39 @@ -# Minecraft Launcher +# Minecraft Server Pack Easy Installer + +Node.js + TypeScript + Express + EJS 기반 관리 사이트와 Electron 기반 Windows 설치기 프로젝트입니다. + +## 실행 + +```bash +npm install +npm run build +npm start +``` + +관리 사이트 기본 주소: + +```text +http://127.0.0.1:3000 +``` + +설치기 개발 실행: + +```bash +npm run installer +``` + +Windows 설치 파일 빌드: + +```bash +npm run dist:win +``` + +기본 관리자 계정: + +```text +id: admin +password: change-me +``` - 실패하면 `직접 포트포워딩 해주세요` 안내를 표시합니다. - 접속 주소를 직접 입력한 경우에는 자동 포트 개방을 건너뜁니다. diff --git a/account.json b/account.json new file mode 100644 index 0000000..62fcc71 --- /dev/null +++ b/account.json @@ -0,0 +1,6 @@ +[ + { + "id": "admin", + "password": "change-me" + } +] diff --git a/electron-builder.yml b/electron-builder.yml new file mode 100644 index 0000000..ef01e09 --- /dev/null +++ b/electron-builder.yml @@ -0,0 +1,16 @@ +appId: kr.tkrmagid.mc-custom-suite +productName: MC Custom Installer +directories: + output: release +files: + - dist/**/* + - installer/**/* + - views/**/* + - public/**/* + - manifest.json + - account.json + - manifest/**/* + - file/**/* +win: + target: + - nsis diff --git a/file/.gitkeep b/file/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/file/.gitkeep @@ -0,0 +1 @@ + diff --git a/file/sample-pack.zip b/file/sample-pack.zip new file mode 100644 index 0000000..5cb89a2 Binary files /dev/null and b/file/sample-pack.zip differ diff --git a/installer/index.html b/installer/index.html new file mode 100644 index 0000000..1cdfd7e --- /dev/null +++ b/installer/index.html @@ -0,0 +1,138 @@ + + +
+ + +STEP 1
+STEP 2
+STEP 3
+STEP 4
+STEP 5
+로컬 웹서버를 띄워 브라우저에서 설정 파일을 수정합니다.
+ + + +STEP 6
+STEP 7
+MC CUSTOM
+manifest.json에 등록된 서버팩을 한 줄 카드 목록으로 제공합니다.
+manifest 키: <%= pack.file %>
PACK EDITOR
+OP LOGIN
+