Skip to content

Commit

Permalink
clean up work
Browse files Browse the repository at this point in the history
  • Loading branch information
johnuberbacher committed Aug 30, 2023
1 parent 577a9ea commit 73fd7c3
Show file tree
Hide file tree
Showing 18 changed files with 131 additions and 236 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ bower_components
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
release/
dist/
dist-electron/

# Dependency directories
node_modules/
Expand Down Expand Up @@ -90,8 +92,6 @@ out

# Nuxt.js build / generate output
.nuxt
dist
dist-electron

# Gatsby files
.cache/
Expand Down
118 changes: 0 additions & 118 deletions dist-electron/main/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist-electron/main/index.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist-electron/preload/index.js

This file was deleted.

35 changes: 0 additions & 35 deletions electron-builder.json

This file was deleted.

3 changes: 1 addition & 2 deletions electron/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const store = new Store();
let win = null;
const preload = join(__dirname, "../preload/index.js");
const url = process.env.VITE_DEV_SERVER_URL;
const indexHtml = join(process.env.DIST, "index.html");
const indexHtml = join(process.env.PUBLIC, "index.html");

async function createWindow() {
win = new BrowserWindow({
Expand All @@ -66,7 +66,6 @@ async function createWindow() {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
devTools: false,
},
});

Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<title>Discord Bot Messenger</title>
Expand Down
46 changes: 34 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@
"author": "John Uberbacher",
"license": "MIT",
"private": true,
"keywords": [
"electron",
"rollup",
"vite",
"vue3",
"vue"
],
"debug": {
"env": {
"VITE_DEV_SERVER_URL": "http://127.0.0.1:3344/"
}
},
"scripts": {
"dev": "vite",
"build": "vite build && electron-builder",
Expand All @@ -26,6 +14,40 @@
"app:dist": "electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"build": {
"productName": "Discord Bot Messenger",
"appId": "com.johnuberbacher.discordbotmessenger",
"asar": true,
"directories": {
"output": "release/${version}"
},
"mac": {
"artifactName": "${productName}.${ext}",
"target": [
"dmg"
]
},
"win": {
"target": [
"portable", "zip"
],
"icon": "public/favicon.ico",
"artifactName": "${productName}.${ext}",
"executableName": "Discord Bot Messenger"
},
"nsis": {
"shortcutName": "Discord Bot Messenger",
"oneClick": true,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": false,
"installerIcon": "public/favicon.ico",
"uninstallerIcon": "public/favicon.ico",
"uninstallDisplayName": "Uninstall",
"license": "public/license.txt"
}
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.1.0",
"electron": "^25.0.1",
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE → public/license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 johnuberbacher
Copyright (c) 2023 John Uberbacher

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ const messageSent = () => {
// Function to connect to the Discord bot
const connectToDiscordBot = async () => {
console.log("Fetching bot token from store...");
botToken.value = store.get("discordBotTokenStorage");
try {
Expand All @@ -101,8 +100,6 @@ const connectToDiscordBot = async () => {
name: channel.name,
}));
console.log(channels.value);
connectedToBot.value = true;
});
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Window.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div
class="bot-avatar"
style="
background-image: url('./src/assets/discord-bot-messenger.png');
background-image: url('/assets/discord-bot-messenger.png');
"
:style="{ backgroundImage: `url(${props.botAvatar})` }">
<div class="bot-status" :class="{ active: selectedGuild }"></div>
Expand Down Expand Up @@ -103,7 +103,7 @@
</div>
</div>
</form>
<div>
<div class="footer">
Discord Bot Messenger is a fan-made service created by John Uberbacher.
This app is not affiliated with or endorsed by Discord, and no ownership
or rights are claimed.
Expand Down
Loading

0 comments on commit 73fd7c3

Please sign in to comment.