mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-08 19:54:05 +08:00
Merge pull request #232 from rubickCenter/feat/v3.0.0
🐛 修复 windows 本地启动呼起问题
This commit is contained in:
commit
8fe916020b
@ -27,6 +27,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
const fs = window.require('fs');
|
const fs = window.require('fs');
|
||||||
|
const process = window.require('process');
|
||||||
|
|
||||||
const dbId = 'rubick-local-start-app';
|
const dbId = 'rubick-local-start-app';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rubick",
|
"name": "rubick",
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"author": "muwoo <2424880409@qq.com>",
|
"author": "muwoo <2424880409@qq.com>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { app, BrowserWindow, protocol, nativeTheme } from 'electron';
|
import { app, BrowserWindow, protocol, nativeTheme } from 'electron';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib';
|
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib';
|
||||||
import versonHandler from '../common/versionHandler';
|
// import versonHandler from '../common/versionHandler';
|
||||||
import localConfig from '@/main/common/initLocalConfig';
|
import localConfig from '@/main/common/initLocalConfig';
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
require('@electron/remote/main').initialize();
|
require('@electron/remote/main').initialize();
|
||||||
@ -55,7 +55,7 @@ export default () => {
|
|||||||
win.webContents.executeJavaScript(
|
win.webContents.executeJavaScript(
|
||||||
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
|
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
|
||||||
);
|
);
|
||||||
versonHandler.checkUpdate();
|
// versonHandler.checkUpdate();
|
||||||
// win.webContents.openDevTools();
|
// win.webContents.openDevTools();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import { dialog } from 'electron';
|
import { dialog } from 'electron';
|
||||||
import { autoUpdater } from 'electron-updater';
|
import { autoUpdater } from 'electron-updater';
|
||||||
import pkg from '../../../package.json';
|
import pkg from '../../../package.json';
|
||||||
import API from './api';
|
|
||||||
import commonConst from '@/common/utils/commonConst';
|
|
||||||
import { main } from '../browsers';
|
import { main } from '../browsers';
|
||||||
import { app } from 'electron';
|
|
||||||
|
|
||||||
class VersionHandler {
|
class VersionHandler {
|
||||||
private lastestVersion: string;
|
private lastestVersion: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user