-
Notifications
You must be signed in to change notification settings - Fork 23
For Developers
NPL edited this page Oct 22, 2024
·
3 revisions
1, Install Flutter SDK and Android Studio
Android Studio can replaced with
cmdline-tools
.
2, Clone Miria repo
git clone https://github.com/shiosyakeyakini-info/miria.git
3, Get & Update Plugins
cd miria
flutter pub get
4, Run build
flutter build apk --debug --no-tree-shake-icons
Output dir: <miria>/build/app/outputs/flutter-apk/
Build dependencies:
- Ubuntu 20.04 ~ 24.04: libsecret-1-dev libmpv-dev
Install dependencies:
- Ubuntu 20.04 & 22.04: libsecret-1-0 libmpv1
- Ubuntu 24.04: libsecret-1-0 libmpv2
1, Install fvm
and Flutter Development tools
sudo apt-get update -y && sudo apt-get upgrade -y;
sudo apt-get install -y \
curl git unzip xz-utils \
zip libglu1-mesa \
clang cmake git \
ninja-build pkg-config \
libgtk-3-dev liblzma-dev \
libstdc++-12-dev
curl -fsSL https://fvm.app/install.sh | bash
2, Install dependencies
sudo apt update && sudo apt upgrade
sudo apt install libsecret-1-dev libmpv-dev
3, Clone Miria repo
git clone https://github.com/shiosyakeyakini-info/miria.git
4, Setup Flutter SDK and Plugins
cd miria
fvm install --setup
fvm flutter pub get
5, Run build
fvm flutter build linux
Output dir: <miria>/build/linux/x64/release/bundle/
1, Install LXD and snapcraft
sudo snap install --classic snapcraft
sudo snap install lxd
sudo usermod -a -G lxd $USER
# reboot
lxd init --minimal
2, Clean Flutter plugins
fvm flutter clean
3, Run snapcraft
snapcraft
Output dir: <miria>/