Skip to content

Commit

Permalink
Use --self-contained for Firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jun 28, 2019
1 parent 07bec93 commit 958fd43
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release Notes

## 1.4.1 - 2019-06-27
## 1.4.2 - 2019-06-28
* Update deps
* Use --self-contained for Firmware

## 1.3.1 - 2019-03-22
* Show light
Expand Down
2 changes: 1 addition & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Target.create "CreateFirmware" (fun _ ->
{ info with
FileName = dotnetOpts.DotNetCliPath
WorkingDirectory = piServerPath
Arguments = "publish -c Release -r linux-arm -o \"" + Path.getFullName publish + "\"" }) TimeSpan.MaxValue
Arguments = "publish -c Release -r linux-arm --self-contained -o \"" + Path.getFullName publish + "\"" }) TimeSpan.MaxValue
if result <> 0 then failwith "Publish PiServer failed"

[ piServerPath </> "PiServer"
Expand Down
7 changes: 0 additions & 7 deletions src/PiServer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ log_action_cont_msg " apt install "
sudo apt-get install -y curl libunwind8 gettext apt-transport-https omxplayer npm unzip
log_action_end_msg $?

log_action_begin_msg "Download dotnet core "
curl -sSL -o dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/b12c61f5-7ba4-47f1-93f0-d2280fa4bf3c/8e1ae5ac780c61e0339d0247e7d9a8d8/dotnet-runtime-2.2.3-linux-arm.tar.gz
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
rm dotnet.tar.gz
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
log_action_end_msg $?

if [ -e $SCRIPTROOT/$PROJECTNAME ]; then
if [ ! -e $DEFAULTS -a $SCRIPTROOT/$PROJECTNAME.defaults ]; then
echo DAEMONHOME=$DAEMONHOME > $DEFAULTS
Expand Down
7 changes: 0 additions & 7 deletions src/PiServer/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ if [ -e $DEFAULTS ]; then
exit 2
fi

log_action_begin_msg "Download dotnet core "
curl -sSL -o dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/b12c61f5-7ba4-47f1-93f0-d2280fa4bf3c/8e1ae5ac780c61e0339d0247e7d9a8d8/dotnet-runtime-2.2.3-linux-arm.tar.gz
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
rm dotnet.tar.gz
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
log_action_end_msg $?

log_action_begin_msg "Updating packages "
log_action_cont_msg " apt update "
apt-get -qq update
Expand Down

0 comments on commit 958fd43

Please sign in to comment.