mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-07-04 10:54:55 +00:00
Compare commits
No commits in common. "afc27b58f1d6b645d341133fc672caee5139db8d" and "a8a9a33fa6d4c3ea7ef5701b06e045a2b90351f9" have entirely different histories.
afc27b58f1
...
a8a9a33fa6
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "lantern-build-engine"]
|
|
||||||
path = lantern-build-engine
|
|
||||||
url = https://gitlab.com/sbrl/lantern-build-engine.git
|
|
|
@ -14,8 +14,4 @@ Global
|
||||||
{15E98995-9BDA-4874-B8AF-0C58665A6DDD}.Release|x86.ActiveCfg = Release|x86
|
{15E98995-9BDA-4874-B8AF-0C58665A6DDD}.Release|x86.ActiveCfg = Release|x86
|
||||||
{15E98995-9BDA-4874-B8AF-0C58665A6DDD}.Release|x86.Build.0 = Release|x86
|
{15E98995-9BDA-4874-B8AF-0C58665A6DDD}.Release|x86.Build.0 = Release|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
|
||||||
description = Create Atom feeds for websites that don't support it.
|
|
||||||
version = 0.1.1
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
<AssemblyName>PolyFeed</AssemblyName>
|
<AssemblyName>PolyFeed</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<ReleaseVersion>0.1.1</ReleaseVersion>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
|
106
build
106
build
|
@ -1,106 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Make sure the current directory is the location of this script to simplify matters
|
|
||||||
cd "$(dirname "$(readlink -f $0)")" || exit 1;
|
|
||||||
################
|
|
||||||
### Settings ###
|
|
||||||
################
|
|
||||||
|
|
||||||
# The name of this project
|
|
||||||
project_name="PolyFeed";
|
|
||||||
|
|
||||||
# The path to the lantern build engine git submodule
|
|
||||||
lantern_path="./lantern-build-engine";
|
|
||||||
|
|
||||||
###
|
|
||||||
# Custom Settings
|
|
||||||
###
|
|
||||||
|
|
||||||
# Put any custom settings here.
|
|
||||||
# build_output_folder="./dist";
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# Check out the lantern git submodule if needed
|
|
||||||
if [ ! -f "${lantern_path}/lantern.sh" ]; then git submodule update --init "${lantern_path}"; fi
|
|
||||||
|
|
||||||
# shellcheck disable=SC1090
|
|
||||||
source "${lantern_path}/lantern.sh";
|
|
||||||
|
|
||||||
if [[ "$#" -lt 1 ]]; then
|
|
||||||
echo -e "${FBLE}${project_name}${RS} build script";
|
|
||||||
echo -e " by Starbeamrainbowlabs";
|
|
||||||
# shellcheck disable=SC2154
|
|
||||||
echo -e "${LC}Powered by the lantern build engine, v${version}${RS}";
|
|
||||||
echo -e "";
|
|
||||||
echo -e "${CSECTION}Usage${RS}";
|
|
||||||
echo -e " ./build ${CTOKEN}{action}${RS} ${CTOKEN}{action}${RS} ${CTOKEN}{action}${RS} ...";
|
|
||||||
echo -e "";
|
|
||||||
echo -e "${CSECTION}Available actions${RS}";
|
|
||||||
echo -e " ${CACTION}setup${RS} - Do initial setup";
|
|
||||||
echo -e " ${CACTION}ci${RS} - Execute CI tasks";
|
|
||||||
echo -e "";
|
|
||||||
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
task_setup() {
|
|
||||||
task_begin "Checking environment";
|
|
||||||
|
|
||||||
check_command git true;
|
|
||||||
check_command msbuild true;
|
|
||||||
check_command nuget true;
|
|
||||||
check_command fpm true;
|
|
||||||
check_command dpkg true;
|
|
||||||
check_command awk true;
|
|
||||||
|
|
||||||
task_end 0;
|
|
||||||
|
|
||||||
|
|
||||||
task_begin "Initialising submodules";
|
|
||||||
execute git submodule update --init;
|
|
||||||
task_end $?;
|
|
||||||
}
|
|
||||||
|
|
||||||
task_build() {
|
|
||||||
task_begin "Building PolyFeed for release";
|
|
||||||
execute nuget restore;
|
|
||||||
execute msbuild /p:Configuration=Release;
|
|
||||||
execute chmod -x PolyFeed/bin/Release/*;
|
|
||||||
execute chmod +x PolyFeed/bin/Release/*.exe;
|
|
||||||
task_end $?;
|
|
||||||
}
|
|
||||||
|
|
||||||
task_package() {
|
|
||||||
task_begin "Packaging as .deb";
|
|
||||||
execute cp -ral PolyFeed/bin/Release PolyFeed/bin/polyfeed;
|
|
||||||
version="$(awk '/version = / { print($3) }' PolyFeed.sln | tr -d '\n\r')-$(date +"%Y%m%dT%H%M").$(git rev-parse HEAD | head -c7)";
|
|
||||||
fpm -s dir -t deb -n polyfeed \
|
|
||||||
--epoch 0 -v "${version}" \
|
|
||||||
--license MPL-2.0 \
|
|
||||||
--architecture all --maintainer "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>" \
|
|
||||||
--description "Create Atom feeds for websites that don't support it" \
|
|
||||||
--url "https://github.com/sbrl/PolyFeed" \
|
|
||||||
--depends mono-runtime \
|
|
||||||
PolyFeed/bin/polyfeed=/usr/lib \
|
|
||||||
polyfeed=/usr/bin/polyfeed;
|
|
||||||
execute rm -r PolyFeed/bin/polyfeed;
|
|
||||||
execute dpkg -c *.deb; # We don't know it's name :P
|
|
||||||
task_end $?;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
task_archive() {
|
|
||||||
task_begin "Archiving artifacts";
|
|
||||||
mv *.deb "${ARCHIVE}";
|
|
||||||
task_end $?;
|
|
||||||
}
|
|
||||||
|
|
||||||
task_ci() {
|
|
||||||
tasks_run setup build package archive;
|
|
||||||
}
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
tasks_run $@;
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 617fcdb5b9df7f57ccb6639a87be68238f99b9ed
|
|
Loading…
Reference in a new issue