@uosjs/maker-uos
v1.0.7
Published
### 使用流程 1. npm install @uosjs/maker-uos 2. forge.config.ts 配置如下 ```typescript import { MakerUos, IMakerUosOptions } from '@uosjs/maker-uos' import { MakerDeb } from '@electron-forge/maker-deb' import { MakerDebConfigOptions } from '@electron-forge/maker-
Downloads
10
Readme
Electron forge 打包 Uos 系统安装包
使用流程
- npm install @uosjs/maker-uos
- forge.config.ts 配置如下
import { MakerUos, IMakerUosOptions } from '@uosjs/maker-uos'
import { MakerDeb } from '@electron-forge/maker-deb'
import { MakerDebConfigOptions } from '@electron-forge/maker-deb/dist/Config'
import path from 'path'
const uosOptions: IMakerUosOptions = {
permissions: {
// autostart: false,
// notification: false,
// trayicon: false,
// clipboard: false,
// account: false,
// bluetooth: false,
// camera: false,
// audio_record: false,
// installed_apps: false
}
}
const debOptions: MakerDebConfigOptions = {
icon: path.join(process.cwd(), './extraResource/logos/icon.png'),
description: '我是 description',
maintainer: 'Uos Tech <[email protected]>',
depends: ['openssl'],
priority: 'optional',
section: 'utils',
homepage: 'https://changxie.uniontech.com',
categories: ['Network', 'Office']
}
const config: ForgeConfig = {
...
makers: [new MakerUos({ debOptions, uosOptions }),
new MakerDeb({ options: debOptions })]
...
}
export default config