- Spotify playlist, library, album and artist browsing with in-app playback - Song, playlist and album downloads via spotdl with YouTube and Bandcamp fallbacks - Electron desktop app (castLabs Widevine) with a permanent sidebar layout - Linux and Windows packaging scripts
8 lines
361 B
TypeScript
8 lines
361 B
TypeScript
import { contextBridge, ipcRenderer } from "electron";
|
|
|
|
contextBridge.exposeInMainWorld("spotiripDesktop", {
|
|
getDownloadFolder: () => ipcRenderer.invoke("settings:get-download-folder"),
|
|
chooseDownloadFolder: () => ipcRenderer.invoke("settings:choose-download-folder"),
|
|
showInFolder: (path: string) => ipcRenderer.invoke("shell:show-in-folder", path),
|
|
});
|