代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Bittly 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/**
* set configuration variables
*/
console.log(`NODE_ENV : ${process.env.NODE_ENV}`);
console.log(`BITTLY_HOST_TYPE : ${process.env.BITTLY_HOST_TYPE}`);
console.log(`BITTLY_WEBAPP_ASSETS_PATH : ${process.env.BITTLY_WEBAPP_ASSETS_PATH}`);
let productionSourceMap = false;
let publicPath = '/';
let pageTemplate = 'public/index.html';
if ( 'development' === process.env.NODE_ENV ) {
productionSourceMap = true;
} else if ( 'production' === process.env.NODE_ENV && 'browser' === process.env.BITTLY_HOST_TYPE ) {
publicPath = process.env.BITTLY_WEBAPP_ASSETS_PATH;
pageTemplate = 'public/index-webapp.html';
productionSourceMap = true;
}
/**
* configurations for vue cli
* @link https://cli.vuejs.org/config/
*/
module.exports = {
/**
* The base URL your application bundle will be deployed at.
* @property {String}
* @link https://cli.vuejs.org/config/#publicpath
*/
publicPath : publicPath,
/**
* Setting this to false can speed up production builds if you don't need source maps for production.
* @property {String}
* @link https://cli.vuejs.org/config/#productionsourcemap
*/
// productionSourceMap : productionSourceMap,
/**
* webpack configurations
* @property {Object}
* @see {webpack.config.js}
* @link https://cli.vuejs.org/config/#configurewebpack
*/
configureWebpack: require('./webpack.config.js'),
/**
* css options
*/
css: {
extract : 'development' === process.env.NODE_ENV ? false : {
ignoreOrder: true
}
},
/**
* build the app in multi-page mode
* @property {Object}
* @link https://cli.vuejs.org/config/#pages
*/
pages: {
index: {
entry: 'src/main.js',
template: pageTemplate,
filename: 'index.html',
title: 'Bittly',
chunks: ['chunk-vendors', 'chunk-common', 'index']
},
toolTerminal : {
entry: 'src/tools/terminal/index.js',
template: pageTemplate,
filename: 'tool-terminal.html',
title: 'Terminal',
chunks: ['chunk-vendors', 'chunk-common', 'toolTerminal']
},
toolCalculator : {
entry: 'src/tools/calculator/index.js',
template: pageTemplate,
filename: 'tool-calculator.html',
title: 'Calculator',
chunks: ['chunk-vendors', 'chunk-common', 'toolCalculator']
},
},
pluginOptions: {
/**
* configurations for electron builder plugin
* @link https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/configuration.html
*/
electronBuilder: {
externals: ['serialport','bluetooth-serial-port'],
preload: 'src/preload.js',
/**
* electron-builder options
* @link https://www.electron.build/configuration/configuration
*/
builderOptions : {
npmRebuild : false,
win : {
target : ['nsis','zip'],
icon : "build/icon.ico",
},
linux : {
target : ['AppImage'],
icon: "build/icon/",
category : "Development",
},
nsis: {
allowToChangeInstallationDirectory: true,
oneClick: false,
installerIcon : 'build/installer-icon.ico',
uninstallerIcon : 'build/uninstall-icon.ico',
createDesktopShortcut : true,
createStartMenuShortcut : true,
artifactName : "bittly-${version}-win-${arch}.exe",
menuCategory : 'Bittly',
},
appImage : {
artifactName : "bittly-${version}-${arch}.AppImage",
},
dmg: {
// artifactName : "bittly-${version}-${arch}.AppImage",
icon : "build/icon/Icon-512x512.png",
},
extraFiles : [
],
publish : [{
provider : "generic",
url : "http://127.0.0.1/update/",
}],
},
},
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。