Skip to content

Commit

Permalink
cleanup: general fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcbroom committed Oct 29, 2024
1 parent 988f090 commit 4aef56b
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
deploy/linux/build/
deploy/linux/
deploy/win32/
Binary file removed assets/logox200.png
Binary file not shown.
2 changes: 1 addition & 1 deletion deploy/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"appName":"osu-collecter-downloader"}
{ "appName": "osu!collector downloader" }
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "osu-collector-downloader",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack --mode production",
"start": "webpack && qode ./dist/index.js",
"debug": "webpack && qode --inspect ./dist/index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"@nodegui/nodegui": "^0.57.1",
"axios": "^1.2.3",
"node-downloader-helper": "^2.1.6",
"osu-collector-node": "^1.0.3"
},
"devDependencies": {
"@nodegui/packer": "^1.5.0",
"@types/node": "^18.7.14",
"clean-webpack-plugin": "^4.0.0",
"file-loader": "^6.2.0",
"native-addon-loader": "^2.0.1",
"ts-loader": "^9.3.1",
"typescript": "^4.8.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
"name": "osu-collector-downloader",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "npx nodegui-packer --init osu!collectordownloader && webpack --mode production && npx nodegui-packer --pack ./dist",
"start": "webpack && qode ./dist/index.js",
"debug": "webpack && qode --inspect ./dist/index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"@nodegui/nodegui": "^0.57.1",
"axios": "^1.2.3",
"node-downloader-helper": "^2.1.6",
"osu-collector-node": "^1.0.3"
},
"devDependencies": {
"@nodegui/packer": "^1.5.0",
"@types/node": "^18.7.14",
"clean-webpack-plugin": "^4.0.0",
"file-loader": "^6.2.0",
"native-addon-loader": "^2.0.1",
"ts-loader": "^9.3.1",
"typescript": "^4.8.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
const { QMainWindow, QIcon } = require("@nodegui/nodegui");
const { QMainWindow, QIcon, QSystemTrayIcon } = require("@nodegui/nodegui");
const Path = require("path");
const RootView = require("./components/RootView");

const win = new QMainWindow();
win.setWindowTitle("osu!collector");
win.setWindowTitle("osu!collector downloader");
win.setFixedSize(400, 200);

const icon = new QIcon("../assets/iconx200.png");
const tray = new QSystemTrayIcon();

const icon = new QIcon(
Path.join(__dirname, "./assets/logo.png")
);

win.setWindowIcon(icon);
tray.setIcon(icon);
tray.show();

global.tray = tray; // prevents garbage collection of tray

// Set up the root view
const rootView = new RootView();
Expand Down

0 comments on commit 4aef56b

Please sign in to comment.