generated from kurone-kito/vpm-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa3c9d3
commit 78cc9ff
Showing
10 changed files
with
267 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
import { readdir, writeFile } from 'node:fs/promises'; | ||
import { readdir, readFile, writeFile } from 'node:fs/promises'; | ||
import { parse } from 'marked'; | ||
|
||
/** icons directory */ | ||
const ICONS = 'public/icons'; | ||
|
||
/** destination file */ | ||
const DEST = 'src/dynamic.json'; | ||
|
||
/** texts directory */ | ||
const MDS = 'src/assets/texts'; | ||
|
||
/** icons list */ | ||
const icons = (await readdir(ICONS, { withFileTypes: true })) | ||
.filter((file) => file.isFile() && file.name.endsWith('.svg')) | ||
.map((file) => file.name.replace(/\.svg$/, '')) | ||
.sort(); | ||
|
||
await writeFile(DEST, JSON.stringify({ icons }, null, 2)); | ||
/** | ||
* empty texts | ||
* @type {Readonly<Record<string, string>>} | ||
*/ | ||
const emptyTexts = {}; | ||
|
||
const texts = await ( | ||
await readdir(MDS, { withFileTypes: true }) | ||
) | ||
.filter((file) => file.isFile() && file.name.endsWith('.md')) | ||
.reduce( | ||
(acc, file) => | ||
acc.then(async (texts) => { | ||
const key = file.name.replace(/\.md$/, ''); | ||
const text = await readFile(`${MDS}/${file.name}`, 'utf8'); | ||
return { ...texts, [key]: await parse(text) }; | ||
}), | ||
Promise.resolve(emptyTexts), | ||
); | ||
|
||
await writeFile(DEST, JSON.stringify({ icons, texts }, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- markdownlint-disable MD033 MD041 --> | ||
|
||
### System requirements | ||
|
||
- **<span translate="no">VRChat Creator Companion</span>** (Recommended) | ||
- There is a bundled sample scene created in Unity _2022.3.22f1_; | ||
we recommend previewing it using the same version. | ||
|
||
### Installation | ||
|
||
#### 1. Import the registry via the <span translate="no">VRChat Creator Companion (VCC)</span> | ||
|
||
[Add to VCC](vcc://vpm/addRepo?url=https%3A%2F%2Fkurone-kito.github.io%2Fvpm%2Findex.json) | ||
|
||
#### 2. Import the package to your project | ||
|
||
1. Click on the “Manage Project” button in the VCC | ||
2. Find the “<span translate="no">LaunchPad Icons</span>” package and | ||
click on the “(+) Add package” button | ||
|
||
#### 3. Use the package, enjoy :D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- markdownlint-disable MD033 MD041 --> | ||
|
||
### Manually installation (not recommended) | ||
|
||
#### 1. Download the package | ||
|
||
Download the package from the | ||
[latest release](https://github.com/kurone-kito/launchpad-icons/releases). | ||
|
||
#### 2. Manually resolve the dependencies | ||
|
||
The package requires the following dependencies: | ||
|
||
- [<span translate="no">Unity Vector Graphics (com.unity.vectorgraphics)</span>](https://docs.unity3d.com/Packages/[email protected]/manual/index.html) | ||
`>=2.0.0-preview.24` | ||
|
||
#### 3. Import the package to your project | ||
|
||
1. Open your Unity project | ||
2. Drag and drop the downloaded package into the Unity Editor | ||
3. Click on the “Import” button |
Oops, something went wrong.