Browse Source

Merge pull request #1601 from meriadec/fix-ci-and-non-linux-packaging

Fix CircleCI config (libfuse) and release on non-linux platforms
gre-patch-1
Gaëtan Renaudeau 6 years ago
committed by GitHub
parent
commit
48f2e4a17f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .circleci/config.yml
  2. 100
      scripts/release.sh

2
.circleci/config.yml

@ -9,7 +9,7 @@ jobs:
build: build:
<<: *defaults <<: *defaults
steps: steps:
- run: sudo apt-get install -y libudev-dev - run: sudo apt-get install -y libudev-dev libfuse-dev
- run: - run:
name: Install latest yarn name: Install latest yarn
command: | command: |

100
scripts/release.sh

@ -69,48 +69,58 @@ fi
runJob "yarn compile" "compiling..." "compiled" "failed to compile" "verbose" runJob "yarn compile" "compiling..." "compiled" "failed to compile" "verbose"
# -------------------------------------------------------------------- if [[ $(uname) == 'Linux' ]]; then
# Linux: Internal process error (null) # --------------------------------------------------------------------
# # Linux: Internal process error (null)
# context: https://github.com/LedgerHQ/ledger-live-desktop/issues/1010 #
# Linux: Internal process error (null) # context: https://github.com/LedgerHQ/ledger-live-desktop/issues/1010
# # Linux: Internal process error (null)
# The "fix" is not optimal, as it doesn't really solve the problem #
# (electron loading system openssl before we can load our embedded one) # The "fix" is not optimal, as it doesn't really solve the problem
# Quick summary: # (electron loading system openssl before we can load our embedded one)
# # Quick summary:
# - build without publishing #
# - unpack the .AppImage # - build without publishing
# - download reported working libs from ubuntu mirrors, put it inside # - unpack the .AppImage
# - re-pack the .AppImage # - download reported working libs from ubuntu mirrors, put it inside
# - checksum stuff # - re-pack the .AppImage
# - upload to gh # - checksum stuff
# - upload to gh
runJob \
"DEBUG=electron-builder electron-builder build --publish never" \ runJob \
"building and packaging app..." \ "DEBUG=electron-builder electron-builder build --publish never" \
"app built and packaged successfully" \ "building and packaging app..." \
"failed to build app" \ "app built and packaged successfully" \
"verbose" "failed to build app" \
"verbose"
runJob \
"scripts/patch-appimage.sh" \ runJob \
"patching AppImage..." \ "scripts/patch-appimage.sh" \
"AppImage patched successfully" \ "patching AppImage..." \
"failed to patch AppImage" "AppImage patched successfully" \
"failed to patch AppImage"
LEDGER_LIVE_VERSION=$(grep version package.json | sed -E 's/.*: "(.*)",/\1/g')
LEDGER_LIVE_VERSION=$(grep version package.json | sed -E 's/.*: "(.*)",/\1/g')
scripts/upload-github-release-asset.sh \
github_api_token="$GH_TOKEN" \ scripts/upload-github-release-asset.sh \
owner=LedgerHQ \ github_api_token="$GH_TOKEN" \
repo=ledger-live-desktop \ owner=LedgerHQ \
tag="$GH_TAG" \ repo=ledger-live-desktop \
filename="dist/ledger-live-desktop-$LEDGER_LIVE_VERSION-linux-x86_64.AppImage" tag="$GH_TAG" \
filename="dist/ledger-live-desktop-$LEDGER_LIVE_VERSION-linux-x86_64.AppImage"
scripts/upload-github-release-asset.sh \
github_api_token="$GH_TOKEN" \ scripts/upload-github-release-asset.sh \
owner=LedgerHQ \ github_api_token="$GH_TOKEN" \
repo=ledger-live-desktop \ owner=LedgerHQ \
tag="$GH_TAG" \ repo=ledger-live-desktop \
filename="dist/latest-linux.yml" tag="$GH_TAG" \
filename="dist/latest-linux.yml"
else
runJob \
"DEBUG=electron-builder electron-builder build --publish always" \
"building and packaging app..." \
"app built and packaged successfully" \
"failed to build app" \
"verbose"
fi

Loading…
Cancel
Save