Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
package works
Browse files Browse the repository at this point in the history
  • Loading branch information
disoul committed May 4, 2016
1 parent 9394967 commit c9469b0
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
Binary file added app/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
95 changes: 95 additions & 0 deletions app/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/topbar.png
Binary file not shown.
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const ipcMain = electron.ipcMain;
const Tray = electron.Tray;
const Menu = electron.Menu;

const Childprocess = require('child_process');
const path = require('path');
Expand All @@ -12,6 +14,7 @@ const http = require('http');
let server_process;

let mainWindow;
var appIcon = null;

function createWindow () {
mainWindow = new BrowserWindow({
Expand All @@ -21,7 +24,9 @@ function createWindow () {
nodeIntegration: 'iframe',
webSecurity: false,
},
title: 'CloudMusic',
frame: false,
icon: 'app/assets/icon.png',
});

mainWindow.loadURL('http://127.0.0.1:8080');
Expand Down

0 comments on commit c9469b0

Please sign in to comment.