-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Partial Vagrantfile, reorganize scripts
- Loading branch information
1 parent
e2920b1
commit 30ea6f8
Showing
9 changed files
with
211 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
/build | ||
/builddir | ||
/dist | ||
/.vagrant | ||
/scripts/tools | ||
/release.json | ||
/accent.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.define "debian", primary: true do |debian| | ||
debian.vm.box = "generic/debian12" | ||
debian.vm.synced_folder ".", "/home/vagrant/openfreebuds" | ||
|
||
debian.vm.provision "shell", | ||
run: 'once', | ||
name: "Prepare base dependencies (Flatpak, Just, Poetry)", | ||
privileged: true, | ||
inline: <<-SHELL | ||
apt update | ||
apt install -y --no-install-recommends pipx curl flatpak python-is-python3 | ||
# Install qasync (not in Debian repos, required for packaging as runtime dep) | ||
# Since Debian 13, will be in main repo | ||
curl -s -o /tmp/qasync.deb https://deb.mmk.pw/pool/main/q/qasync/python3-qasync_0.27.1-4_all.deb | ||
apt install -y --no-install-recommends /tmp/qasync.deb | ||
rm /tmp/qasync.deb | ||
# Install Just | ||
# Since Debian 13, will be in main repo | ||
if [ ! -f /usr/local/bin/just ] | ||
then | ||
curl -s https://just.systems/install.sh | bash -s -- --to /usr/local/bin | ||
fi | ||
# Install Poetry for user | ||
sudo -u vagrant pipx install poetry | ||
echo 'export PATH=$PATH:/home/vagrant/.local/bin' >> /home/vagrant/.bashrc | ||
SHELL | ||
|
||
debian.vm.provision "shell", | ||
run: 'always', | ||
name: "Install Flatpak requirements", | ||
privileged: false, | ||
inline: <<-SHELL | ||
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo | ||
flatpak install -y --user org.flatpak.Builder | ||
SHELL | ||
|
||
debian.vm.provision "shell", | ||
run: 'always', | ||
name: "Install and build everything", | ||
privileged: false, | ||
inline: <<-SHELL | ||
export FLATPAKBUILDDIR=$HOME/flatpak | ||
cd ~/openfreebuds | ||
just dependencies_debian prepare | ||
just build pkg_debian_full pkg_flatpak | ||
SHELL | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,14 @@ Section: utils | |
Priority: optional | ||
Maintainer: MelianMiko <[email protected]> | ||
Build-Depends: debhelper-compat (= 12), | ||
python3 (>= 3.11), | ||
build-essential, | ||
python3-dev, | ||
python3-pip, | ||
pyqt6-dev-tools, | ||
libcairo2-dev, | ||
gobject-introspection, | ||
libgirepository1.0-dev, | ||
qt6-l10n-tools, | ||
fakeroot, | ||
make, | ||
git | ||
Standards-Version: 4.4.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
tar-ignore = "*venv" | ||
tar-ignore = ".git" | ||
tar-ignore = ".vagrant" | ||
tar-ignore = "dist" | ||
tar-ignore = "scripts/build_flatpak" |
Oops, something went wrong.