readme + install.sh

This commit is contained in:
√(noham)²
2024-03-21 18:31:41 +01:00
parent c722db5d58
commit 515684e5ce
4 changed files with 14 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
AppleMusicExporter est un projet conçu pour exporter les musiques depuis Apple Music en temps réel. AppleMusicExporter utilise [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) pour les interactions avec Apple Music. AppleMusicExporter est un projet conçu pour exporter les musiques depuis Apple Music en temps réel. AppleMusicExporter utilise [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) pour les interactions avec Apple Music.
![music player](Music-Player.gif) ![music player](front-example/screen.png)
![diagramme](Diagramme.drawio.png) ![diagramme](Diagramme.drawio.png)
## Dépendances : ## Dépendances :
@@ -41,12 +41,15 @@ git clone https://github.com/NohamR/AM-Exporter.git
cd user cd user
python install -r requirements.txt python install -r requirements.txt
``` ```
Créer le fichier .env avec l'utilisateur et son mot de passe ([.env.example](user/.env.example)).
Configuer [music-exp.plist](user/music-exp.plist) sur l'exemple de [music-exp.plist.example](user/music-exp.plist.example) : Configuer [music-exp.plist](user/music-exp.plist) sur l'exemple de [music-exp.plist.example](user/music-exp.plist.example) :
PYTHON_PATH PYTHON_PATH
WORKING_DIRECTORY WORKING_DIRECTORY
```bash ```bash
./install.sh ./install.sh
``` ```
![notif.png](notif.png)
Logs can but found in the working direcrtory : Logs can but found in the working direcrtory :
```bash ```bash
@@ -66,5 +69,4 @@ cd user
``` ```
# To do : # To do :
- make script proper
- comment - comment

BIN
notif.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

3
user/.env.example Normal file
View File

@@ -0,0 +1,3 @@
USER = "user"
PASSWORD = "password"
URL_API = "https://api.example.com"

View File

@@ -6,4 +6,10 @@ cp -f music-exp.plist ~/Library/LaunchAgents/
echo --- Load launch agent echo --- Load launch agent
launchctl load ~/Library/LaunchAgents/music-exp.plist launchctl load ~/Library/LaunchAgents/music-exp.plist
echo --- INSTALL SUCCESS
if launchctl list | grep am.noh.music-exp; then
echo "--- Agent successfully loaded"
echo "--- INSTALL SUCCESS"
else
echo "--- ERROR: Agent failed to load"
fi