feat: 打包配置问题修复
This commit is contained in:
@@ -12,6 +12,7 @@ import * as path from 'path';
|
|||||||
const config: ForgeConfig = {
|
const config: ForgeConfig = {
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
asar: true,
|
asar: true,
|
||||||
|
tmpdir: path.resolve(process.cwd(), '..', 'electron-packager-tmp'),
|
||||||
},
|
},
|
||||||
rebuildConfig: {},
|
rebuildConfig: {},
|
||||||
makers: [
|
makers: [
|
||||||
@@ -70,8 +71,8 @@ const config: ForgeConfig = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async preMake() {
|
async preMake() {
|
||||||
const outDir = path.resolve(process.cwd(), 'out');
|
const makeDir = path.resolve(process.cwd(), 'out', 'make');
|
||||||
fs.rmSync(outDir, { recursive: true, force: true });
|
fs.rmSync(makeDir, { recursive: true, force: true });
|
||||||
},
|
},
|
||||||
|
|
||||||
async postPackage(_forgeConfig, options) {
|
async postPackage(_forgeConfig, options) {
|
||||||
|
|||||||
@@ -11,6 +11,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="../src/renderer/main.ts"></script>
|
<script type="module" src="/src/renderer/main.ts"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -12,13 +12,11 @@ import { shallowRef } from 'vue'
|
|||||||
import SystemConfig from './components/SystemConfig/index.vue'
|
import SystemConfig from './components/SystemConfig/index.vue'
|
||||||
import AccountSetting from './components/AccountSetting/index.vue'
|
import AccountSetting from './components/AccountSetting/index.vue'
|
||||||
import Version from './components/Version/index.vue'
|
import Version from './components/Version/index.vue'
|
||||||
import ChannelSetting from './components/ChannelSetting/index.vue'
|
|
||||||
import RoomTypeSetting from './components/RoomTypeSetting/index.vue'
|
import RoomTypeSetting from './components/RoomTypeSetting/index.vue'
|
||||||
|
|
||||||
const currentComponent = shallowRef(AccountSetting)
|
const currentComponent = shallowRef(AccountSetting)
|
||||||
const components: any = {
|
const components: any = {
|
||||||
AccountSetting,
|
AccountSetting,
|
||||||
ChannelSetting,
|
|
||||||
RoomTypeSetting,
|
RoomTypeSetting,
|
||||||
Version,
|
Version,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user