Skip to content

Commit

Permalink
Packager updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypt0hunter committed Jul 6, 2020
1 parent 118327b commit 280bea4
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 592 deletions.
70 changes: 0 additions & 70 deletions Scripts/Legacy builds/.travis.yml

This file was deleted.

133 changes: 0 additions & 133 deletions Scripts/Legacy builds/appveyor.yml

This file was deleted.

68 changes: 0 additions & 68 deletions Scripts/Legacy builds/build.sh

This file was deleted.

32 changes: 15 additions & 17 deletions Scripts/Packager/build-linux-arm.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

arch=arm
configuration=Release
os_platform=linux
log_prefix=LINUXARM-BUILD
build_directory=$(dirname $(dirname "$PWD"))
release_directory="/tmp/Solaris/Release"
release_directory="/tmp/solris/${log_prefix}"
node_directory=$build_directory/blockcore-nodes/XLR/src/Solaris.Node

# exit if error
set -o errexit
Expand All @@ -22,7 +22,7 @@ dotnet --info
# Initialize dependencies
echo $log_prefix STARTED restoring dotnet and npm packages
cd $build_directory
git submodule update --init --recursive
#git submodule update --init --recursive

cd $build_directory/StratisCore.UI

Expand All @@ -33,36 +33,34 @@ echo $log_prefix FINISHED restoring dotnet and npm packages

# dotnet publish
echo $log_prefix running 'dotnet publish'
cd $build_directory/SolarisBitcoinFullNode/src/Stratis.SolarisD
sudo dotnet restore
cd $node_directory
# sudo dotnet clean
# sudo dotnet restore
sudo dotnet publish -c $configuration -r $os_platform-$arch -v m -o $build_directory/StratisCore.UI/daemon

echo $log_prefix chmoding the file
sudo chmod +x $build_directory/StratisCore.UI/daemon/Solaris
echo $log_prefix chmoding the blockcore nodes file
sudo chmod +x $build_directory/StratisCore.UI/daemon/Blockcore*

# node Build
cd $build_directory/StratisCore.UI
echo $log_prefix Building and packaging Wallet
sudo npm install
sudo npm run package:linuxarm
echo $log_prefix finished packaging

echo $log_prefix contents of the app-builds folder
cd $build_directory/StratisCore.UI/app-builds/
# replace the spaces in the name with a dot as CI system have trouble handling spaces in names.
for file in *.{tar.gz,deb,zip}; do mv "$file" `echo $file | tr ' ' '.'` 2>/dev/null || : ; done
for file in *.{tar.gz,deb,AppImage}; do sudo mv "$file" `echo $file | tr ' ' '.'` 2>/dev/null || : ; done
ls -al -h

# Move files to release directory
sudo rm -rf $release_directory
sudo mkdir -p $release_directory
sudo cp $build_directory/StratisCore.UI/app-builds/* $release_directory #2>/dev/null
sudo cp -r $build_directory/StratisCore.UI/app-builds/* $release_directory

#Clear previous builds
sudo rm -rf $build_directory/StratisCore.UI/app-builds/*
sudo rm -f $build_directory/StratisCore.UI/app-builds/*

echo $log_prefix FINISHED build



sudo rm -rf $build_directory/StratisCore.UI/app-builds
sudo rm -rf $build_directory/StratisCore.UI/daemon
sudo rm -rf $build_directory/StratisCore.UI/dist

echo $log_prefix FINISHED build
Loading

0 comments on commit 280bea4

Please sign in to comment.