Note:
Do not install mishiro in a path which includes Chinese or Japanese characters.
If you have trouble to launch or experience any error, try to install the latest version.
Score viewer demo: https://toyobayashi.github.io/mishiro-score-viewer/
Repo: mishiro-score-viewer
xcode-select --install
in your terminal)Clone / Pull
$ git clone https://github.com/toyobayashi/mishiro.git
$ git pull
NOTE: Due to C++ native addon compilation must match correct Electron / Node.js version, when electron
version in package.json
changed, please remove the following folders manually then run npm install
again.
/app/node_modules/mishiro-core
/app/node_modules/sqlite3
/app/node_modules/hca-decoder
/app/node_modules/spdlog
/app/node_modules/usm-decrypter
You can also just run npm run rm
to do this.
Install
Windows
> cd mishiro/app
> npm install -g node-gyp
REM install electron's node C++ header
> for /f "delims=" %P in ('node -p "require('./package.json').devDependencies.electron"') do node-gyp install --target=%P --dist-url=https://electronjs.org/headers
REM install dependencies
> npm install
REM get external resources
> npm run get
Linux / MacOS
$ cd mishiro/app
$ npm install -g node-gyp
$ node-gyp install --target=$(node -p require\(\'./package.json\'\).devDependencies.electron) --dist-url=https://electronjs.org/headers
$ npm install
$ npm run get # get external resources
If run npm install
error, remove package-lock.json
then try again.
Develop
Recommend VSCode.
# ~/mishiro/app$ code .
$ npm run dev
# or
$ npm run serve
# then launch mishiro by vscode debug mode
Build
# bundle code for production
$ npm run build
Launch
# launch mishiro in production mode
$ npm start
Pack
$ npm run pack:x64 # x64
$ npm run pack:ia32 # Windows x86
Special thanks:
The copyright of CGSS and its related content is held by BANDAI NAMCO Entertainment Inc.