mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-08 11:34:10 +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>
|
||||
import { ref } from 'vue';
|
||||
const fs = window.require('fs');
|
||||
const process = window.require('process');
|
||||
|
||||
const dbId = 'rubick-local-start-app';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rubick",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.1",
|
||||
"author": "muwoo <2424880409@qq.com>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { app, BrowserWindow, protocol, nativeTheme } from 'electron';
|
||||
import path from 'path';
|
||||
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';
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
require('@electron/remote/main').initialize();
|
||||
@ -55,7 +55,7 @@ export default () => {
|
||||
win.webContents.executeJavaScript(
|
||||
`window.rubick && window.rubick.hooks && typeof window.rubick.hooks.onShow === "function" && window.rubick.hooks.onShow()`
|
||||
);
|
||||
versonHandler.checkUpdate();
|
||||
// versonHandler.checkUpdate();
|
||||
// win.webContents.openDevTools();
|
||||
});
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
import { dialog } from 'electron';
|
||||
import { autoUpdater } from 'electron-updater';
|
||||
import pkg from '../../../package.json';
|
||||
import API from './api';
|
||||
import commonConst from '@/common/utils/commonConst';
|
||||
import { main } from '../browsers';
|
||||
import { app } from 'electron';
|
||||
|
||||
class VersionHandler {
|
||||
private lastestVersion: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user