Skip to content

potatoeggy/primoprod

Repository files navigation

primoprod

A Genshin Impact-inspired wish simulator written with Vue and Typescript to push a to-do list with gacha as motivation.

Usage

Visit https://primoprod.vercel.app for a live demo!

Alternatively, to use primoprod offline or with a slow internet connection or while the demo is down, download the latest desktop or Android version in the Releases tab.

Disclaimer

All code is licensed under the AGPL in LICENSE.md.

This project is for practice and for fun and is not intended for monetary gain. Most assets are owned by MiHoYo, Co., Ltd.

Some implementation details were inspired by https://genshin.thekima.com, https://github.com/uzair-ashraf/genshin-impact-wish-simulator, and https://github.com/AguzzTN54/Genshin-Impact-Wish-Simulator.

Project setup

yarn install

For Electron (desktop) builds, Node 16+ and Electron 13+ is required.

For Capacitor (Android) builds, Node 16+, Java 11+, and the Android SDK with platform API 21-31 is required.

Compiles and hot-reloads for development

Web:

yarn serve

Electron:

yarn electron:serve

Capacitor:

yarn cap:serve

Compiles and minifies for production

Web (output folder /dist):

yarn build

Electron (output folder /dist_electron):

yarn electron:build

Capacitor (output folder /android as an Android Studio project):

cap add android
yarn build
yarn cap:build

To directly build the Android app from the command line afterward:

cd android && ./gradlew build
jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/.android/debug.keystore ./app/build/outputs/apk/release/app-release-unsigned.apk

The self-signed APK is available in $REPO_ROOT/android/app/build/outputs/apk/release/app-release-unsigned.apk.