-
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.
Merge pull request #7 from metaindu/prep-release
Prep release
- Loading branch information
Showing
12 changed files
with
141 additions
and
45 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
MetaphysicsIndustries.Solus | ||
Copyright (C) 2008-2021 Metaphysics Industries, Inc. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 3 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | ||
USA | ||
--> | ||
|
||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<metadata> | ||
<id>MetaphysicsIndustries.Solus</id> | ||
<version>$version$</version> | ||
<title>MetaphysicsIndustries.Solus</title> | ||
<authors>izrik,metaindu</authors> | ||
<owners>izrik,metaindu</owners> | ||
<license type="expression">LGPL-3.0-or-later</license> | ||
<projectUrl>https://github.com/metaindu/MetaphysicsIndustries.Solus</projectUrl> | ||
<!-- TODO: <icon>images/logo.png</icon> --> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Mathematics system</description> | ||
<releaseNotes>Initial release</releaseNotes> | ||
<copyright>Copyright 2021 izrik and Metaphysics Industries, Inc.</copyright> | ||
<tags>math numeric algebra</tags> | ||
<dependencies> | ||
<group> | ||
<dependency id="MetaphysicsIndustries.Giza" version="0.2.0" /> | ||
</group> | ||
<group targetFramework=".NETFramework4.0" /> | ||
</dependencies> | ||
<frameworkAssemblies> | ||
<frameworkAssembly assemblyName="System" targetFramework="" /> | ||
</frameworkAssemblies> | ||
</metadata> | ||
<files> | ||
<file src="bin/Debug/MetaphysicsIndustries.Solus.dll" target="lib/net40" /> | ||
<file src="bin/Debug/MetaphysicsIndustries.Solus.pdb" target="lib/net40" /> | ||
</files> | ||
</package> |
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
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
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
# MetaphysicsIndustries.Solus | ||
# Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
# License as published by the Free Software Foundation; either | ||
# version 3 of the License, or (at your option) any later version. | ||
# | ||
# This library is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with this library; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | ||
# USA | ||
|
||
TAG="$1" | ||
|
||
if [ "$TAG" = "" ] | ||
then | ||
TAG=$TRAVIS_TAG | ||
fi | ||
|
||
if [ "$TAG" = "" ] | ||
then | ||
echo 'No tag given. Package will not be created.' | ||
exit 1 | ||
fi | ||
|
||
VERSION=`echo "$TAG" | perl -ne 'print /^v(\d+\.\d+(?:\.\d+(?:\.\d+)?)?)$/'` | ||
if [ "$VERSION" = "" ]; | ||
then | ||
echo 'Wrong version format. Package will not be created.' | ||
exit 1 | ||
fi | ||
|
||
AVERSION=`grep AssemblyVersion Properties/AssemblyInfo.cs | perl -npe 's/^.*?\"//;s/\".*$//'` | ||
if [ "$VERSION" != "$AVERSION" ] | ||
then | ||
echo "Tag doesn't match assembly version ($VERSION != $AVERSION). Package will not be created." | ||
exit 1 | ||
fi | ||
|
||
DVERSION=`echo "$VERSION" | perl -ne 'print /^(\d+\.\d+\.\d+(?:\.\d+)?)/'` | ||
if [ "$DVERSION" = "" ]; | ||
then | ||
DVERSION="${VERSION}.0" | ||
echo "Adjusting version to '$DVERSION'." | ||
else | ||
DVERSION="$VERSION" | ||
fi | ||
|
||
echo 'Creating the nuget package...' | ||
if ! nuget pack MetaphysicsIndustries.Solus.nuspec -Properties version=$DVERSION ; then | ||
echo 'Error creating the package. The package will not be uploaded.' | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$NUGET_API_KEY" ]; then | ||
echo 'No Api Key provided. The package will not be uploaded. Please set the $NUGET_API_KEY variable.' | ||
exit 1 | ||
fi | ||
|
||
echo 'Uploading the package to nuget...' | ||
if ! nuget push MetaphysicsIndustries.Solus.$DVERSION.nupkg -Source nuget.org -ApiKey $NUGET_API_KEY ; then | ||
echo 'Error uploading the package. Quitting.' | ||
exit 1 | ||
fi | ||
|
||
echo 'Done.' |
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,2 +1 @@ | ||
update version number | ||
create nuget package |