-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
92 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,46 @@ | ||
# Publish and pack application | ||
# Publish and pack application for linux-x64 and osx-x64 | ||
|
||
PUBLISH_PATH=bin/Release/netcoreapp2.0/linux-x64/publish | ||
PUBLISH_PATH_LINUX=bin/Release/netcoreapp2.0/linux-x64/publish | ||
PUBLISH_PATH_OSX=bin/Release/netcoreapp2.0/osx-x64/publish | ||
LINUX_ARCHIVE=fly_linux64.zip | ||
OSX_ARCHIVE=fly_osx64.zip | ||
|
||
pack: publish | ||
cp scripts/install.sh ${PUBLISH_PATH} | ||
cp scripts/uninstall.sh ${PUBLISH_PATH} | ||
cd ${PUBLISH_PATH} && zip fly.zip * | ||
cp ${PUBLISH_PATH}/fly.zip . | ||
pack: pack_linux pack_osx | ||
|
||
publish: clean | ||
# Linux | ||
pack_linux: publish_linux | ||
cp scripts/linux-x64/install.sh ${PUBLISH_PATH_LINUX} | ||
cp scripts/linux-x64/uninstall.sh ${PUBLISH_PATH_LINUX} | ||
cd ${PUBLISH_PATH_LINUX} && zip ${LINUX_ARCHIVE} * | ||
cp ${PUBLISH_PATH_LINUX}/${LINUX_ARCHIVE} . | ||
|
||
publish_linux: clean | ||
dotnet restore | ||
dotnet publish -c Release -r linux-x64 | ||
|
||
test_linux: pack_linux | ||
mkdir test | ||
cp ${LINUX_ARCHIVE} test/ | ||
cd test && unzip ${LINUX_ARCHIVE} | ||
|
||
|
||
# OSX | ||
pack_osx: publish_osx | ||
cp scripts/osx-x64/install.sh ${PUBLISH_PATH_OSX} | ||
cp scripts/osx-x64/uninstall.sh ${PUBLISH_PATH_OSX} | ||
cd ${PUBLISH_PATH_OSX} && zip ${OSX_ARCHIVE} * | ||
cp ${PUBLISH_PATH_OSX}/${OSX_ARCHIVE} . | ||
|
||
publish_osx: clean | ||
dotnet restore | ||
dotnet publish -c Release -r osx-x64 | ||
|
||
|
||
|
||
clean: | ||
$(RM) fly.zip | ||
$(RM) ${LINUX_ARCHIVE} | ||
$(RM) ${OSX_ARCHIVE} | ||
$(RM) -rf bin obj | ||
$(RM) -rf test | ||
|
||
test: pack | ||
mkdir test | ||
cp fly.zip test/ | ||
cd test && unzip fly.zip | ||
|
||
.PHONY: publish pack | ||
.PHONY: publish_linux pack_linux publish_osx pack_osx pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
# Script for installing fly client | ||
|
||
ID=`id -u` | ||
|
||
# Checkf if we have needed privileges | ||
if test "$ID" -ne "0" | ||
then | ||
echo "Please run this script as root" | ||
exit 1 | ||
fi | ||
|
||
rm -rf /usr/local/fly 2> /dev/null | ||
rm /usr/local/bin/fly 2> /dev/null | ||
|
||
mkdir /usr/local/fly | ||
cp -rp * /usr/local/fly/ | ||
ln -s /usr/local/fly/FlyUnix /usr/local/bin/fly | ||
echo "Fly client is installed..." | ||
echo "If you will have any problems with fly client, check prerequisites for running .NET Core apps at:" | ||
echo "https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# Script for installing fly client | ||
|
||
ID=`id -u` | ||
|
||
# Checkf if we have needed privileges | ||
if test "$ID" -ne "0" | ||
then | ||
echo "Please run this script as root" | ||
exit 1 | ||
fi | ||
|
||
rm -rf /usr/local/fly 2> /dev/null | ||
rm /usr/local/bin/fly 2> /dev/null | ||
|
||
echo "Fly client is now uninstalled..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ public enum PlatformType | |
{ | ||
Windows, | ||
Linux, | ||
Osx, | ||
Phone, | ||
Unknown | ||
} | ||
|