Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Mar 22, 2019
1 parent f485fd0 commit 1bea06f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -24,7 +24,9 @@ install:
- npm install
- npm prune
script:
- npm run dist:$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux:deb && npm run dist:linux:appimage" || echo "mac")
- '[ "$TRAVIS_OS_NAME" == "linux" ] || npm run dist:mac'
- '[ "$TRAVIS_OS_NAME" == "osx" ] || npm run dist:linux:deb'
- '[ "$TRAVIS_OS_NAME" == "osx" ] || npm run dist:linux:appimage'
deploy:
provider: releases
api_key:
Expand Down
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: ubports-installer
version: readfromscript
version-script: node ./build.js --version
version-script: "cat package.json | grep version | sed s/' \"version\": \"'//g | sed s/'\",'//g"
summary: The easy way to install Ubuntu Touch on UBports devices.
description: A friendly cross-platform Installer for Ubuntu Touch. Just connect a supported device to your PC, follow the on-screen instructions and watch this awesome tool do all the rest.
icon: build/icons/icon.png
Expand Down Expand Up @@ -41,7 +41,7 @@ parts:
after:
- desktop-glib-only
override-build: |
./build.js -o 'linux' -p 'dir' -e '{"package": "snap"}'
./build.js -o 'linux' -p 'dir' --no-platform-tools
mkdir $SNAPCRAFT_PART_INSTALL/app
mv dist/linux-unpacked/* $SNAPCRAFT_PART_INSTALL/app
mv bin/* $SNAPCRAFT_PART_INSTALL/bin
Expand Down

0 comments on commit 1bea06f

Please sign in to comment.