osu! preview is a browser extension that lets you preview the gameplay of a beatmap.
Current versions of software used:
$ node -v
v17.3.0
$ npm -v
8.3.0
Everything should work with older versions of both Node and NPM.
Setup after cloning the repository:
npm install
- Run
npm run start:chrome
. This will createbuild
directory inside the directory containing the extension. - Open up Chrome and navigate to
chrome://extensions
. - Enable
Developer mode
. - Click the
Load unpacked
button and select the previously mentionedbuild
directory. - The extension is now ready to go!
All the changes made are compiled automatically as long as the npm run start:chrome
script is running.
To build a production version of the package, run npm run build:chrome
.
- Run
npm run start:firefox
. This will createbuild
directory inside the directory containing the extension. - Open up Firefox and navigate to
about:debugging
. - Click the
Load Temporary Add-on
button and select any file in the previously mentioned directory. - The extension is now ready to go!
All the changes made are compiled automatically as long as the npm run start:firefox
script is running.
To build a production version of the package, run npm run build:firefox
.
Run npm run build:all
. Two files, osu-preview-chrome.zip
and osu-preview-firefox.zip
, are generated.