From b3951077630d9f8188fe15fca899f75be41ff4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 20 Oct 2019 11:47:51 +0200 Subject: Add documentation for windows install --- documentation_en.md | 27 +++++++++++++++++++++++++++ documentation_fr.md | 26 ++++++++++++++++++++++++++ music_sampler/app.py | 3 ++- 3 files changed, 55 insertions(+), 1 deletion(-) diff --git a/documentation_en.md b/documentation_en.md index ac12909..ee95ad3 100644 --- a/documentation_en.md +++ b/documentation_en.md @@ -9,6 +9,8 @@ set of actions to run. ## Dependencies and installation +(See next section for Windows installation) + - You need ffmpeg installed. For that, you can use package `libav-tools` (debian): sudo apt-get install libav-tools @@ -46,6 +48,31 @@ To compile Kivy with the SDL2 library, you need some packages: cf [Installation Kivy](https://kivy.org/docs/installation/installation-linux.html) +## Installation sous Windows + +Following processed worked to install music sampler in a Windows +machine: + +- [Install python 3.7.\* (take 64bit version!)](https://www.python.org/downloads/windows) +- In a command shell (`cmd.exe`), run: + + pip install music_sampler + pip install docutils pygments pypiwin32 PySDL2 kivy.deps.sdl2 kivy.deps.glew + +- [Install ffmpeg (64bit, static)](https://ffmpeg.zeranoe.com/builds/) + and put the content of folder `bin` in the same folder as music and configs. +- [Download Ubuntu font](https://www.1001fonts.com/ubuntu-font.html) + and install Ubuntu-R and Ubuntu-B (Regular and Bold) *for all users* (right clic on the font) +- [Download Symbola font](https://fontlibrary.org/en/font/symbola) + and install it *for all users* (right clic on the font) +- Write a `run.bat` file with: + + :::bash + @echo off + music_sampler + +- Run this `run.bat` when you need it. + ## Compiled version A compiled version can be created with `pyinstaller`: diff --git a/documentation_fr.md b/documentation_fr.md index d7d2f2c..76a4b97 100644 --- a/documentation_fr.md +++ b/documentation_fr.md @@ -10,6 +10,8 @@ appui sur une touche. ## Pré-requis et installation +(Voir la section suivante pour Windows) + - Il faut avoir ffmpeg d'installé. Pour cela, il faut installer le paquet `libav-tools` (debian) : sudo apt-get install libav-tools @@ -47,6 +49,30 @@ Pour compiler kivy avec la librairie SDL2, il faut certains paquets installés: cf [Installation Kivy](https://kivy.org/docs/installation/installation-linux.html) +## Installation sous Windows + +Le processus suivant a permis d’installer music sampler sous windows: + +- [Installer python 3.7.\* (prendre la version 64bit!)](https://www.python.org/downloads/windows) +- Dans une invite de commande (`cmd.exe`), lancer: + + pip install music_sampler + pip install docutils pygments pypiwin32 PySDL2 kivy.deps.sdl2 kivy.deps.glew + +- [Télécharger ffmpeg (64bit, static)](https://ffmpeg.zeranoe.com/builds/) + et mettre le contenu du dossier `bin` dans le dossier avec les musiques +- [Télécharger la police Ubuntu](https://www.1001fonts.com/ubuntu-font.html) + et installer Ubuntu-R et Ubuntu-B (Regular et Bold) *pour tous les utilisateurs* (clic droit sur la police) +- [Télécharger la police Symbola](https://fontlibrary.org/en/font/symbola) + et l’installer *pour tous les utilisateurs* (clic droit sur la police) +- Écrire un fichier `run.bat` avec: + + :::bash + @echo off + music_sampler + +- Lancer `run.bat` pour démarrer le programme. + ## Version compilée Une version compilée peut être créée avec pyinstaller: diff --git a/music_sampler/app.py b/music_sampler/app.py index 74f0acb..3fd6f51 100644 --- a/music_sampler/app.py +++ b/music_sampler/app.py @@ -68,5 +68,6 @@ class MusicSamplerApp(App): return Screen() def main(): - Builder.load_file(path() + "/music_sampler.kv") + with open(path() + "/music_sampler.kv", encoding='utf8') as f: + Builder.load_string(f.read()) MusicSamplerApp().run() -- cgit v1.2.3