Skip to content

Commit

Permalink
install package
Browse files Browse the repository at this point in the history
  • Loading branch information
nekobato committed Aug 31, 2023
1 parent 4fcd837 commit 4b5d9e9
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 180 deletions.
2 changes: 1 addition & 1 deletion electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
},
],
},
asar: true,
asar: false,
directories: {
output: "release/${version}",
},
Expand Down
308 changes: 153 additions & 155 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
"main": "dist/main/index.cjs",
"dependencies": {
"electron-fetch": "^1.9.1",
"uuid": "^9.0.0",
"vue": "^3.2.45"
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@iconify/vue": "^4.0.2",
Expand All @@ -30,14 +32,12 @@
"electron": "25.3.2",
"electron-builder": "^24.6.3",
"electron-icon-builder": "^2.0.1",
"electron-log": "^4.4.8",
"electron-rebuild": "^3.2.9",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.1",
"element-plus": "^2.3.9",
"mfm-js": "^0.23.3",
"misskey-js": "^0.0.16",
"node-gyp": "^9.3.1",
"nuxt-electron": "^0.6.0",
"pinia": "^2.1.6",
"postcss-html": "^1.5.0",
"prettier": "^3.0.2",
Expand All @@ -50,7 +50,10 @@
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vite-plugin-electron": "^0.14.0-beta.0",
"vite-plugin-electron-renderer": "^0.14.5",
"vite-plugin-resolve": "^2.3.0",
"vue": "^3.2.45",
"vue-router": "^4.1.6",
"vue-tsc": "^1.8.8",
"vuex": "^4.1.0"
Expand Down
12 changes: 1 addition & 11 deletions packages/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import electron, {
app,
BrowserWindow,
globalShortcut,
ipcMain,
Menu,
protocol,
safeStorage,
session,
Tray,
} from "electron";
import electron, { app, BrowserWindow, globalShortcut, ipcMain, Menu, protocol, Tray } from "electron";
import { createMainWindow } from "./windows/mainWindow";
import { createMenuWindow } from "./windows/menuWindow";
import { createPostWindow } from "./windows/postWindow";
Expand Down
3 changes: 1 addition & 2 deletions packages/main/windows/mainWindow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { join } from "path";
import { BrowserWindow, screen } from "electron";
import url from "url";
import path from "path";

const pageName = "main/timeline";

Expand Down Expand Up @@ -34,7 +33,7 @@ export function createMainWindow() {
url.format({
protocol: "app",
slashes: true,
pathname: path.join(__dirname, `../renderer/index.html#/${pageName}`),
pathname: join(__dirname, `../renderer/index.html#/${pageName}`),
}),
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/main/windows/mediaViewerWindow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { join } from "path";
import { BrowserWindow } from "electron";
import url from "url";
import path from "path";

const pageName = "media-viewer";

Expand Down Expand Up @@ -31,7 +30,7 @@ export function createMediaViewerWindow() {
url.format({
protocol: "app",
slashes: true,
pathname: path.join(__dirname, `../renderer/index.html#/${pageName}`),
pathname: join(__dirname, `../renderer/index.html#/${pageName}`),
}),
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/main/windows/menuWindow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { join } from "path";
import { BrowserWindow } from "electron";
import url from "url";
import path from "path";

const pageName = "menu";

Expand Down Expand Up @@ -33,7 +32,7 @@ export function createMenuWindow() {
url.format({
protocol: "app",
slashes: true,
pathname: path.join(__dirname, `../renderer/index.html#/${pageName}`),
pathname: join(__dirname, `../renderer/index.html#/${pageName}`),
}),
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/main/windows/postWindow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { join } from "path";
import { BrowserWindow } from "electron";
import url from "url";
import path from "path";

const pageName = "post";

Expand Down Expand Up @@ -35,7 +34,7 @@ export function createPostWindow() {
url.format({
protocol: "app",
slashes: true,
pathname: path.join(__dirname, `../renderer/index.html#/${pageName}`),
pathname: join(__dirname, `../renderer/index.html#/${pageName}`),
}),
);
}
Expand Down

0 comments on commit 4b5d9e9

Please sign in to comment.