Skip to content

Commit

Permalink
Linux build (#27)
Browse files Browse the repository at this point in the history
* Added space to application name

* Added icons

* Builds deb, Failes to run

Returns failed to locate startable electron application.

* Fixed npm start failure

* Working linux build

* Delete Logs\log4net-debug.log

* Updated linux_dependencies script

Moved root level scripts into a seperate file to distinguish them.

* Working Linux AP Desktop name

* Removed Broken Icons

* Initial TravisCI Script

* Removal of log4net-debug.log

* Test fix .travis.yml

* Added mono-complete to travis ci

* mono-complete added to packages

* Potential OS Fix

* Test fix xvfb

* Updated Version Number

This is mainly to update travis ci

* Added fakeroot library

* Fixed travic ci order

Updated app icon.

* Fix tests

* PR Review Changes

* Remove unneeded install

* Updated test timeout

* Added Temporary Token

* Added Azure Pipelines

* Potential Babel Fix

* Update Babel Version

* Force Babel Install

* Moved babel install to new script

* Incorrect npm install

This could be the reason why babel was failing. `npm run install` does not run the normal install.

* npm-pwsh workaround

Because of the issues with windows running pwsh, linux and windows now have seperate ap_download scripts and a node script differentiates between them based on OS.

* Debugging AP Downloader

* Backdate script_ap to use curl.exe

* Added extra error reporting for VM

* Potential npm-pwsh workaround

* Seperated AP Download from dependencies

* Update README.md
  • Loading branch information
Allcharles authored and atruskie committed May 10, 2019
1 parent 5e31c64 commit f2602f7
Show file tree
Hide file tree
Showing 14 changed files with 1,641 additions and 866 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ dist
.vscode
src/js-compiled
tests/test-compiled
Logs\log4net-debug.log
*log4net-debug.log
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
language: node_js
node_js:
- "10.15"

addons:
apt:
packages:
- xvfb
- mono-complete
- ffmpeg
- wavpack
- libsox-fmt-all
- sox
- shntool
- mp3splt
- libav-tools
- fakeroot

before_install:
- npm run dependencies
- npm run ap_download
before_script:
- export DISPLAY=:99.0
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

script:
- npm test
- npm run make

matrix:
include:
- os: linux
dist: xenial
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ AP Desktop is a Graphical User Interface (GUI) for the open source program Analy

## Installing Project

- Download and install Node.js v11.10.0 or newer [link](https://nodejs.org/en/download/)
- Download and install Node.js v10.13.0 or newer [link](https://nodejs.org/en/download/)
- Check you are running NPM v6.9.0 or newer
- Install git (Linux: `sudo apt-get install git`) [link](https://git-scm.com/download/win)
- Open the file containing the AP Desktop code in Command Line and then execute the following commands:
- `npm run ap_download` (Currently this will only run once per project)
- `npm install`
- `npm start`

Expand All @@ -15,6 +17,11 @@ AP Desktop is a Graphical User Interface (GUI) for the open source program Analy
- To build the project, run the following command: `npm run release`
- You will need to run this once on each patform (Windows/Linux/Mac) to get the full suit

### Linux Ubuntu 16 / Mint 18.3 Setup

- Install mono-complete
- Run `npm run dependencies`

## Current Features

- Basic audio2csv analysis
Expand Down
10 changes: 6 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master
# trigger on all branches

jobs:
- job: Windows
Expand All @@ -16,12 +15,15 @@ jobs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: |
npm run install
npm run ap_download
displayName: "Download AP"
- script: |
npm install
npm run babel
displayName: "Installing App Dependencies"
- script: |
npm test
displayName: "Run Test Suite"
- script: |
npm run make
displayName: "Build Release"
displayName: "Build Release"
3 changes: 0 additions & 3 deletions linux_dependencies.sh

This file was deleted.

Loading

1 comment on commit f2602f7

@Allcharles
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes #11

Please sign in to comment.