HomePROJECTS

Spotify Clon for Diana Sessions

Music aplication (electron), for Diana Sessions from Riot Games Music
Aug 14 2022
1 min readβ€’JavaScript, Tools
entities
Captura
Captura

Installation

  • The complete guide can be found at GitHub
<h1 align="center">🌜 Lofi Music - Diana Sessions πŸŒ›</h1>

license
license

GitHub Release Date
GitHub Release Date

GitHub contributors
GitHub contributors

GitHub forks
GitHub forks

<p align="center"> Lofi music application made in electron, based on "Diana Sessions" from Riot Games Music.

This project was made for educational purposes only, and the music originally comes from Riot Games Music

Download

Available for Mac, Linux and Windows.

Installer .exe only available for Windows.

Windows Installer

MacOS

Linux

License

πŸ’œ MIT License

Code Example

#JAVASCRIPT
1//Llamamos a createwindow de main.js
2const {createWindow} = require('./main')
3const {app} = require('electron')
4const path = require('path');
5//Llamamos al modulo de electron
6require('electron-reload')(__dirname, {
7    electron: path.join(__dirname, 
8    'node_modules/.bin/electron')
9});
10app.allowRendererProcessReuse = false;
11//Para Mac Os "darwin", cuando se pulse 
12//salir, 
13//debera invocar el metodo quit del 
14//objeto app 
15app.whenReady().then(createWindow)
16app.on('window-all-closed', () => {
17    if (process.platform !== 'darwin') {  
18        app.quit()
19    }
20});
21//Para Mac Os, cuando la aplicacion 
22//se quede en el dock este 
23// reactivarse con el evento activate
24app.on('activate', function() {
25    if (BrowserWindow.getAllWindows
26    ().length === 0){
27        createWindow();
28    }
29});
30

Did you like this article? Share it!

Β© 2025