Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Commit

Permalink
Moved files into proper locations
Browse files Browse the repository at this point in the history
  • Loading branch information
kodalee committed Feb 13, 2022
1 parent 8b97b1d commit 37cfc67
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 17 deletions.
12 changes: 12 additions & 0 deletions dispose.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const fs = require("fs"), target = "dist/";


console.log(`attempting to clean up the ${target} folder...`)

fs.rmdir(target, {recursive: true, force: true}, (err) => {
if (err) {
console.error(`failed to clean up ${target}... more details should be in the thrown stack trace`)
throw err;
};
console.log(`succesfully cleaned up the ${target} folder. you may now build the app`)
})
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ const createWindow = () => {
var currentData = null
win.setTitle("Initializing... - YouTube Music")
win.setMenuBarVisibility(false);
console.log("Loading... | "+`file://${__dirname}/index.html`)
console.log("Loading... | "+`file://${__dirname}/src/index.html`)
win.once("ready-to-show", () => {
win.show();
console.log("Done! No more normal outputs. Only verbose and errors")
ipcMain.on("injectReady", () => {
win.webContents.send("inject", {settings: `file://${__dirname}/settings.html`});
win.webContents.send("inject", {settings: `file://${__dirname}/src/settings.html`});
});

client.updatePresence({
Expand Down Expand Up @@ -118,7 +118,7 @@ const createWindow = () => {
});
})

win.loadURL(`file://${__dirname}/index.html`)
win.loadURL(`file://${__dirname}/src/index.html`)

win.once("close", () => {
app.quit();
Expand Down
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
"main": "index.js",
"scripts": {
"start": "electron-forge start",
"fstart": "electron start",
"pack": "electron-builder --dir",
"dist": "electron-builder --x64",
"package": "electron-forge package",
"make": "electron-forge make"
"build": "electron-builder --x64",
"dispose": "node dispose.js"
},
"keywords": [
"koda",
Expand Down Expand Up @@ -48,12 +45,8 @@
"files": [
"css/**",
"js/**",
"eula.html",
"index.html",
"src/**",
"index.js",
"all_platform_logo_dark.svg",
"icon.png",
"update.gif",
"preload.js",
"settings.html"
],
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions index.html → src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
transform: scale(1.1);
}
</style>
<meta http-equiv="refressh" content="5; url=https://music.youtube.com/" />
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!-- <meta http-equiv="refresh" content="0; url=https://music.youtube.com/" /> -->
<link type="text/css" rel="stylesheet" href="../css/materialize.min.css" media="screen,projection"/>
</head>
<body>
<div class="flex-box">
Expand All @@ -63,8 +63,8 @@ <h4></h4>
</div>
</div>
</div>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="../js/materialize.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script>
window.onload = function(){
$(".content-wrapper")[0].classList.remove("fadeOut")
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit 37cfc67

Please sign in to comment.