HomePROJECTS

Spotify Clon for Diana Sessions

Aug 14 20221 min read
JavaScriptTools
entities
Captura
Captura

Installation

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

<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

Share this article

Β© 2026