add icon
BIN
build/icons/1024x1024.png
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
build/icons/128x128.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
build/icons/16x16.png
Normal file
|
After Width: | Height: | Size: 340 B |
BIN
build/icons/24x24.png
Normal file
|
After Width: | Height: | Size: 524 B |
BIN
build/icons/256x256.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
build/icons/32x32.png
Normal file
|
After Width: | Height: | Size: 738 B |
BIN
build/icons/48x48.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
build/icons/512x512.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
build/icons/64x64.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
build/icons/icon.icns
Normal file
BIN
build/icons/icon.ico
Normal file
|
After Width: | Height: | Size: 353 KiB |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "zy",
|
||||
"version": "0.1.0",
|
||||
"version": "0.7.8",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
@@ -9,7 +9,8 @@
|
||||
"dev": "vue-cli-service electron:serve",
|
||||
"electron:build": "vue-cli-service electron:build",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"postuninstall": "electron-builder install-app-deps"
|
||||
"postuninstall": "electron-builder install-app-deps",
|
||||
"electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten"
|
||||
},
|
||||
"main": "background.js",
|
||||
"dependencies": {
|
||||
@@ -35,6 +36,7 @@
|
||||
"@vue/eslint-config-typescript": "^4.0.0",
|
||||
"babel-plugin-component": "^1.1.1",
|
||||
"electron": "^7.1.8",
|
||||
"electron-icon-builder": "^1.0.2",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-vue": "^5.0.0",
|
||||
"sass": "^1.23.7",
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
createProtocol,
|
||||
installVueDevtools
|
||||
} from 'vue-cli-plugin-electron-builder/lib'
|
||||
import path from 'path'
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||
|
||||
// Keep a global reference of the window object, if you don't, the window will
|
||||
@@ -23,7 +24,9 @@ function createWindow () {
|
||||
webPreferences: {
|
||||
webSecurity: false,
|
||||
nodeIntegration: true
|
||||
}
|
||||
},
|
||||
// @ts-ignore
|
||||
icon: path.join(__static, 'icon.png')
|
||||
})
|
||||
|
||||
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
||||
|
||||
@@ -106,8 +106,8 @@ export default Vue.extend({
|
||||
this.$nextTick(() => {
|
||||
this.xg = new Hls(this.config)
|
||||
// @ts-ignore
|
||||
this.xg.on('error', function () {
|
||||
console.log('lala')
|
||||
this.xg.on('error', () => {
|
||||
this.$message.error('播放失败请重试~')
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
Main: 'Player',
|
||||
Main: 'Search',
|
||||
site: 0,
|
||||
detail: {
|
||||
show: false,
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
module.exports = {
|
||||
pluginOptions: {
|
||||
electronBuilder: {
|
||||
builderOptions: {
|
||||
win: {
|
||||
icon: './public/icon.png'
|
||||
},
|
||||
mac: {
|
||||
icon: './public/icon.png'
|
||||
},
|
||||
productName: 'ZY Player'
|
||||
},
|
||||
builderOptions: {},
|
||||
chainWebpackRendererProcess: config => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
config.plugins.delete('prefetch')
|
||||
|
||||