Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cordx56 committed Jan 12, 2025
0 parents commit 5c7fe9d
Show file tree
Hide file tree
Showing 39 changed files with 8,481 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
push:
branches:
- main

jobs:
build-for-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- run: |
rustup toolchain install --profile=minimal stable
rustup toolchain add aarch64-apple-darwin
- run: pnpm install
- run: pnpm tauri build --bundles dmg
- uses: actions/upload-artifact@v4
with:
name: deskvrm-release-dmg
path: src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.dmg
build-for-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- shell: pwsh
run: |
rustup toolchain install --profile=minimal stable
rustup toolchain add x86_64-pc-windows-msvc
- shell: pwsh
run: pnpm install
- shell: pwsh
run: pnpm tauri build --bundles msi
- uses: actions/upload-artifact@v4
with:
name: deskvrm-release-msi
path: src-tauri/target/x86_64-pc-windows-msvc/release/bundle/**/*.msi
release:
runs-on: ubuntu-latest
needs:
- build-for-macos
- build-for-windows
steps:
- uses: actions/download-artifact@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
body: auto deskvrm release
draft: true
files: |
./**/*.dmg
./**/*.msi
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# deskvrm

画面上に小さなVRMモデルを表示するアプリケーションです。

## 実装状況

- [x] VRM表示
- [ ] モーションの導入
= [ ] キャラクターがマウスに反応する

## 使い方

起動したらファイル選択をしてください。
ファイル選択後、自動で起動します。

ファイル選択後、少ししたらVRMが読み込まれ、マウスで掴むことで動かせます。
モデルをダブルクリックすることで、終了します。
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>deskvrm</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "deskvrm",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"tauri": "tauri"
},
"dependencies": {
"@pixiv/three-vrm": "^3.3.2",
"@tauri-apps/api": "^1.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"three": "^0.172.0"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@tauri-apps/cli": "^1.6.0",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/three": "^0.172.0",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.17.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"typescript": "~5.6.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5"
}
}
Loading

0 comments on commit 5c7fe9d

Please sign in to comment.