Skip to content

Commit 646aa13

Browse files
committed
wait for theme cloning
1 parent 88eec4c commit 646aa13

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/main/main.ts

+13-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,18 @@ async function clone() {
135135
}
136136
}
137137

138-
clone();
138+
// clone();
139+
140+
// Download it
141+
const repoUrl = 'https://github.com/EmuDeck/emudeck-launcher-themes.git'; // Cambia esto por la URL de tu repositorio
142+
const destinationPath = `${homeUser}/emudeck/launcher/themes`; // Cambia esto por tu directorio de destino
143+
144+
cloneOrUpdateRepository(repoUrl, destinationPath)
145+
.then(() => {
146+
console.log('Themes descargadas y guardadas con éxito.');
147+
createWindow();
148+
})
149+
.catch((error) => console.error('Error al guardar los themes:', error));
139150

140151
// Library SQLITE
141152
const dbPathLibrary = `${homeUser}/emudeck/launcher/sqlite/library.db`;
@@ -974,7 +985,7 @@ app.on('window-all-closed', () => {
974985
app
975986
.whenReady()
976987
.then(() => {
977-
createWindow();
988+
// createWindow();
978989
app.on('activate', () => {
979990
// On macOS it's common to re-create a window in the app when the
980991
// dock icon is clicked and there are no other windows open.

0 commit comments

Comments
 (0)