Skip to content
This repository was archived by the owner on Mar 17, 2018. It is now read-only.

Commit

Permalink
fixed deb build
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed Dec 16, 2016
1 parent 108cdce commit 7d0a439
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 45 deletions.
34 changes: 16 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
prefix = /usr/local
PREFIX = /usr/

all: build

build:
wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
mono nuget.exe install ./src/ParkitectNexus.Client.Linux/packages.config -outputdirectory ./packages
mono nuget.exe install ./src/ParkitectNexus.Client.Base/packages.config -outputdirectory ./packages
mono nuget.exe install ./src/ParkitectNexus.Data/packages.config -outputdirectory ./packages
mono nuget.exe install ./src/ParkitectNexus.Mod.ModLoader/packages.config -outputdirectory ./packages
xbuild /p:Configuration=Release ./src/ParkitectNexus.Client.Base/ParkitectNexus.Client.Base.csproj /target:build
xbuild /p:Configuration=Release ./src/ParkitectNexus.Data/ParkitectNexus.Data.csproj /target:build
xbuild /p:Configuration=Release ./src/ParkitectNexus.Mod.ModLoader/ParkitectNexus.Mod.ModLoader.csproj /target:build
xbuild /p:Configuration=Release ./src/ParkitectNexus.Client.Linux/ParkitectNexus.Client.Linux.csproj /target:build
rm -rf ./nuget.exe
xbuild /p:Configuration=Release src/ParkitectNexus.Client.Base/ParkitectNexus.Client.Base.csproj /target:build
xbuild /p:Configuration=Release src/ParkitectNexus.Data/ParkitectNexus.Data.csproj /target:build
xbuild /p:Configuration=Release src/ParkitectNexus.Mod.ModLoader/ParkitectNexus.Mod.ModLoader.csproj /target:build
xbuild /p:Configuration=Release src/ParkitectNexus.Client.Linux/ParkitectNexus.Client.Linux.csproj /target:build


install: build
install -d $(DESTDIR)/opt/ParkitectNexus/ $(DESTDIR)/share/applications/
install -d $(DESTDIR)/opt/ParkitectNexus/ $(DESTDIR)$(PREFIX)/share/applications/
install -m 775 src/ParkitectNexus.Client.Linux/bin/Release/*.dll $(DESTDIR)/opt/ParkitectNexus
install -m 664 src/ParkitectNexus.Client.Linux/bin/Release/*.dll.mdb $(DESTDIR)/opt/ParkitectNexus
install -m 664 src/ParkitectNexus.Client.Linux/bin/Release/*.config $(DESTDIR)/opt/ParkitectNexus
install -m 775 src/ParkitectNexus.Client.Linux/bin/Release/*.exe $(DESTDIR)/opt/ParkitectNexus
install -m 664 src/ParkitectNexus.Client.Linux/bin/Release/*.exe.mdb $(DESTDIR)/opt/ParkitectNexus
install -m 644 -o root ./parkitectnexus.desktop $(DESTDIR)/share/applications/parkitectnexus.desktop
install -m 644 -o root ./parkitectnexus.desktop $(DESTDIR)$(PREFIX)/share/applications/parkitectnexus.desktop
install ./images/parkitectnexus_logo/parkitectnexus_logo-128x128.png $(DESTDIR)/opt/ParkitectNexus/parkitectnexus_logo.png

clean:
git clean -x -d -f

uninstall:
-rm -f $(DESTDIR)/opt/ParkitectNexus
xbuild /p:Configuration=Release src/ParkitectNexus.Client.Base/ParkitectNexus.Client.Base.csproj /target:clean
xbuild /p:Configuration=Release src/ParkitectNexus.Data/ParkitectNexus.Data.csproj /target:clean
xbuild /p:Configuration=Release src/ParkitectNexus.Mod.ModLoader/ParkitectNexus.Mod.ModLoader.csproj /target:clean
xbuild /p:Configuration=Release src/ParkitectNexus.Client.Linux/ParkitectNexus.Client.Linux.csproj /target:clean
rm -rf ./nuget.exe
distclean: clean

.PHONY: all install clean distclean uninstall
.PHONY: all install clean distclean


10 changes: 5 additions & 5 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parkitect-nexus-client (3.0.0) trusty; urgency=low

* Initial release.

-- michael-pollind <[email protected]> Thu, 15 Dec 2016 13:11:14 -0800
parkitect-nexus-client (3.0.1) xenial; urgency=low
* Initial release.
-- michael-pollind <[email protected]> Thu, 15 Dec 2016 13:11:14 -0800
35 changes: 20 additions & 15 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
Source: parkitect-nexus-client
Maintainer: michael-pollind <[email protected]>
Build-Depends: mono-complete (>= 2.10.8), debhelper (>=9)
Standards-Version: 2.1.5980.38291
Homepage: https://parkitectnexus.com/

Package: parkitect-nexus-client
Architecture: any
Section: games
Priority: optional
Depends: mono-complete (>= 2.10.8)
Description: An automatic blueprint and savegames installer for ParkitectNexus.
The Parkitect Nexus client is an application used to download and install
mods from ParkitectNexus. The client will download, and compile mods for
the Parkitect.
Source: parkitect-nexus-client
Maintainer: michael-pollind <[email protected]>
Section: games
Build-Depends:
mono-complete (>= 2.10.8),
debhelper (>=9),
mono-reference-assemblies-2.0(>= 2.10.8),
mono-reference-assemblies-3.5(>= 2.10.8),
mono-reference-assemblies-4.0(>= 2.10.8)
Standards-Version: 2.1.5980.38291
Homepage: https://parkitectnexus.com/

Package: parkitect-nexus-client
Architecture: any
Priority: optional
Depends: mono-complete (>= 2.10.8)
Description: An automatic blueprint and savegames installer for ParkitectNexus.
The Parkitect Nexus client is an application used to download and install
mods from ParkitectNexus. The client will download, and compile mods for
the Parkitect.
1 change: 0 additions & 1 deletion debian/debhelper-build-stamp

This file was deleted.

1 change: 0 additions & 1 deletion debian/files

This file was deleted.

2 changes: 0 additions & 2 deletions debian/parkitect-nexus-client.substvars

This file was deleted.

4 changes: 2 additions & 2 deletions parkitectnexus.desktop
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Desktop Entry]
Name=parkitectnexus
Exec=/opt/ParkitectNexus/parkitectnexus %u
Exec=mono /opt/ParkitectNexus/ParkitectNexus.Client.exe %u
Comment=A mod installer for Parkitect
GenericName=Parkitect Nexus
Icon=/opt/ParkitectNexus/parkitectnexus_logo.png
Categories=Utility;
StartupNotify=true
Terminal=false
Type=Application
MimeType=x-scheme-handler/parkitectnexus;
MimeType=x-scheme-handler/parkitectnexus;
3 changes: 2 additions & 1 deletion src/ParkitectNexus.Data/ParkitectNexus.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType></DebugType>
<DebugType>
</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
Expand Down

0 comments on commit 7d0a439

Please sign in to comment.