2019-12-17 03:50:26 +01:00
|
|
|
/* eslint-disable no-template-curly-in-string */
|
2018-09-08 23:44:19 +02:00
|
|
|
// Configuration for your app
|
|
|
|
|
2020-08-31 07:26:06 +02:00
|
|
|
module.exports = function() {
|
2020-03-03 04:16:23 +01:00
|
|
|
return {
|
2020-08-31 07:26:06 +02:00
|
|
|
// app boot (/src/boot)
|
|
|
|
boot: ["i18n", "axios", "vuelidate", "gateway", "timeago"],
|
2020-09-10 06:13:17 +02:00
|
|
|
css: ["app.styl"],
|
2020-03-03 04:16:23 +01:00
|
|
|
extras: [
|
2020-08-31 07:26:06 +02:00
|
|
|
// ctx.theme.mat ? "roboto-font" : null,
|
2020-03-03 04:16:23 +01:00
|
|
|
"material-icons" // optional, you are not bound to it
|
2020-08-31 07:26:06 +02:00
|
|
|
// "ionicons-v4",
|
|
|
|
// "mdi-v5",
|
|
|
|
// "fontawesome-v5"
|
2020-03-03 04:16:23 +01:00
|
|
|
],
|
|
|
|
supportIE: false,
|
|
|
|
build: {
|
|
|
|
scopeHoisting: true,
|
|
|
|
vueRouterMode: "history",
|
|
|
|
// vueCompiler: true,
|
|
|
|
// gzip: true,
|
|
|
|
// analyze: true,
|
|
|
|
// extractCSS: false,
|
|
|
|
extendWebpack() {
|
|
|
|
/*
|
2018-09-08 23:44:19 +02:00
|
|
|
cfg.module.rules.push({
|
|
|
|
enforce: "pre",
|
|
|
|
test: /\.(js|vue)$/,
|
|
|
|
loader: "eslint-loader",
|
|
|
|
exclude: /(node_modules|quasar)/
|
|
|
|
})
|
|
|
|
*/
|
2020-03-03 04:16:23 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
// https: true,
|
|
|
|
// port: 8080,
|
|
|
|
open: true // opens browser window automatically
|
|
|
|
},
|
|
|
|
// framework: "all" --- includes everything; for dev only!
|
|
|
|
framework: {
|
|
|
|
components: [
|
|
|
|
"QLayout",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QHeader",
|
|
|
|
"QFooter",
|
|
|
|
"QDrawer",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QPageContainer",
|
|
|
|
"QPage",
|
|
|
|
"QToolbar",
|
|
|
|
"QToolbarTitle",
|
|
|
|
"QTooltip",
|
|
|
|
"QField",
|
|
|
|
"QInput",
|
|
|
|
"QRadio",
|
|
|
|
"QOptionGroup",
|
|
|
|
"QBtn",
|
|
|
|
"QBtnToggle",
|
|
|
|
"QIcon",
|
|
|
|
"QTabs",
|
|
|
|
"QTab",
|
|
|
|
"QRouteTab",
|
|
|
|
"QBtnDropdown",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QMenu",
|
|
|
|
"QDialog",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QStep",
|
|
|
|
"QStepper",
|
|
|
|
"QStepperNavigation",
|
|
|
|
"QSpinner",
|
|
|
|
"QList",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QItemLabel",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QItem",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QSeparator",
|
|
|
|
"QItemSection",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QSelect",
|
|
|
|
"QToggle",
|
|
|
|
"QPageSticky",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QExpansionItem",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QCheckbox",
|
|
|
|
"QInnerLoading",
|
|
|
|
"QInfiniteScroll",
|
2020-08-31 07:26:06 +02:00
|
|
|
"QDate",
|
|
|
|
"QTime",
|
2020-03-03 04:16:23 +01:00
|
|
|
"QScrollArea"
|
|
|
|
],
|
2020-08-31 07:26:06 +02:00
|
|
|
directives: ["Ripple"],
|
2020-03-03 04:16:23 +01:00
|
|
|
// Quasar plugins
|
|
|
|
plugins: ["Notify", "Loading", "LocalStorage", "Dialog"]
|
2020-08-31 07:26:06 +02:00
|
|
|
// iconSet: ctx.theme.mat ? "material-icons" : "ionicons-v4"
|
2020-03-03 04:16:23 +01:00
|
|
|
// i18n: "de" // Quasar language
|
|
|
|
},
|
|
|
|
// animations: "all" --- includes all animations
|
|
|
|
animations: [],
|
|
|
|
pwa: {
|
|
|
|
// workboxPluginMode: "InjectManifest",
|
|
|
|
// workboxOptions: {},
|
|
|
|
manifest: {
|
|
|
|
// name: "Quasar App",
|
|
|
|
// short_name: "Quasar-PWA",
|
|
|
|
// description: "Best PWA App in town!",
|
|
|
|
display: "standalone",
|
|
|
|
orientation: "portrait",
|
|
|
|
background_color: "#ffffff",
|
|
|
|
theme_color: "#43BD43",
|
|
|
|
icons: [
|
|
|
|
{
|
|
|
|
src: "statics/icons/icon-128x128.png",
|
|
|
|
sizes: "128x128",
|
|
|
|
type: "image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "statics/icons/icon-192x192.png",
|
|
|
|
sizes: "192x192",
|
|
|
|
type: "image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "statics/icons/icon-256x256.png",
|
|
|
|
sizes: "256x256",
|
|
|
|
type: "image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "statics/icons/icon-384x384.png",
|
|
|
|
sizes: "384x384",
|
|
|
|
type: "image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: "statics/icons/icon-512x512.png",
|
|
|
|
sizes: "512x512",
|
|
|
|
type: "image/png"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
cordova: {
|
|
|
|
// id: "org.cordova.quasar.app"
|
|
|
|
},
|
|
|
|
electron: {
|
|
|
|
bundler: "builder", // or "packager"
|
|
|
|
extendWebpack() {
|
|
|
|
// cfg
|
|
|
|
// do something with Electron process Webpack cfg
|
|
|
|
},
|
|
|
|
packager: {
|
|
|
|
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
|
2018-09-08 23:44:19 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
// OS X / Mac App Store
|
|
|
|
// appBundleId: "",
|
|
|
|
// appCategoryType: "",
|
|
|
|
// osxSign: "",
|
|
|
|
// protocol: "myapp://path",
|
2018-09-08 23:44:19 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
// Window only
|
|
|
|
// win32metadata: { ... }
|
2018-09-08 23:44:19 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
extraResource: ["bin"]
|
|
|
|
},
|
|
|
|
builder: {
|
|
|
|
// https://www.electron.build/configuration/configuration
|
2018-09-08 23:44:19 +02:00
|
|
|
|
2021-01-06 06:26:42 +01:00
|
|
|
appId: "com.oxen.electron-wallet",
|
|
|
|
productName: "Oxen Electron Wallet",
|
2022-06-14 21:24:36 +02:00
|
|
|
copyright: "Copyright © 2018-2022 Oxen, 2018 Ryo Currency Project",
|
2020-03-03 04:16:23 +01:00
|
|
|
afterSign: "build/notarize.js",
|
2021-01-06 06:26:42 +01:00
|
|
|
artifactName: "oxen-electron-wallet-${version}-${os}.${ext}",
|
2020-03-03 04:16:23 +01:00
|
|
|
publish: "github",
|
2018-09-28 21:12:56 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
linux: {
|
2020-05-08 07:14:54 +02:00
|
|
|
target: ["AppImage", "deb"],
|
2021-11-03 06:57:30 +01:00
|
|
|
icon: "oxen-electron-wallet.png",
|
2020-03-03 04:16:23 +01:00
|
|
|
category: "Finance"
|
|
|
|
},
|
2022-06-23 17:31:36 +02:00
|
|
|
// see https://www.electron.build/configuration/linux#debian-package-options
|
|
|
|
deb: {
|
|
|
|
depends: [
|
|
|
|
"libgtk-3-0",
|
|
|
|
"libnotify4",
|
|
|
|
"libnss3",
|
|
|
|
"libxss1",
|
|
|
|
"libxtst6",
|
|
|
|
"xdg-utils",
|
|
|
|
"libatspi2.0-0",
|
|
|
|
"libuuid1",
|
|
|
|
"libsecret-1-0",
|
|
|
|
"libappindicator3-1 | libayatana-appindicator3-1"
|
|
|
|
]
|
|
|
|
},
|
2018-09-28 21:12:56 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
mac: {
|
2020-03-05 00:18:21 +01:00
|
|
|
// We need zip for auto-updating
|
|
|
|
// Ref: https://github.com/electron-userland/electron-builder/issues/2199
|
|
|
|
target: ["dmg", "zip"],
|
2020-03-03 04:16:23 +01:00
|
|
|
icon: "src-electron/icons/icon.icns",
|
|
|
|
category: "public.app-category.finance",
|
|
|
|
// Notarizing: https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
|
|
|
|
hardenedRuntime: true,
|
|
|
|
gatekeeperAssess: false,
|
|
|
|
entitlements: "build/entitlements.mac.plist",
|
|
|
|
entitlementsInherit: "build/entitlements.mac.plist"
|
|
|
|
},
|
2018-09-28 21:12:56 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
dmg: {
|
2021-01-06 06:26:42 +01:00
|
|
|
background: "src-electron/build/oxen-dmg.tiff",
|
2020-03-03 04:16:23 +01:00
|
|
|
sign: false
|
|
|
|
},
|
2018-09-28 21:12:56 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
nsis: {
|
|
|
|
oneClick: false,
|
|
|
|
allowToChangeInstallationDirectory: true
|
|
|
|
},
|
2019-03-27 05:54:07 +01:00
|
|
|
|
2020-09-18 06:59:42 +02:00
|
|
|
files: [
|
|
|
|
"!build/*.js",
|
|
|
|
"!.env",
|
|
|
|
"!dev-app-update.yml",
|
|
|
|
"!downloads/**",
|
|
|
|
"!dist/**"
|
|
|
|
],
|
2019-10-15 06:15:46 +02:00
|
|
|
|
2020-03-03 04:16:23 +01:00
|
|
|
extraResources: ["bin"]
|
|
|
|
}
|
2018-09-08 23:44:19 +02:00
|
|
|
}
|
2020-03-03 04:16:23 +01:00
|
|
|
};
|
|
|
|
};
|