[PR #135] [MERGED] Install a symlink to the main executable in /usr/local/bin #252

Open
opened 2026-01-29 16:31:36 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/quamotion/dotnet-packaging/pull/135
Author: @qmfrederik
Created: 12/2/2019
Status: Merged
Merged: 12/2/2019
Merged by: @qmfrederik

Base: masterHead: features/bin-symlink


📝 Commits (7)

📊 Changes

12 files changed (+162 additions, -9 deletions)

View changed files

📝 Packaging.Targets.Tests/ArchiveBuilderTests.cs (+53 -2)
📝 Packaging.Targets/ArchiveBuilder.cs (+22 -4)
📝 Packaging.Targets/DebTask.cs (+8 -0)
📝 Packaging.Targets/IO/CpioFileCreator.cs (+44 -0)
📝 Packaging.Targets/IO/TarFileCreator.cs (+2 -2)
📝 Packaging.Targets/Rpm/RpmMetadata.cs (+1 -1)
📝 Packaging.Targets/Rpm/RpmPackageCreator.cs (+10 -0)
📝 Packaging.Targets/RpmTask.cs (+9 -0)
📝 Packaging.Targets/TarballTask.cs (+1 -0)
📝 Packaging.Targets/build/Packaging.Targets.targets (+4 -0)
📝 molecule/framework-dependent/molecule/default/tests/test_default.py (+4 -0)
📝 molecule/self-contained/molecule/default/tests/test_default.py (+4 -0)

📄 Description

.NET Core applications now include an "app host", that is, a native executable which loads the .NET Runtime and then invokes the managed executable.

This PR adds a symlink to /usr/local/bin/$(assemblyName) which links to $(prefix)/$(assemblyName). This means that (in most environments) the project will be executable using just $(assemblyName):

fcarlier@fcarlier:~/$ ls -l /usr/local/bin/testapp 
lrwxrwxrwx 1 root root 26 Dec  2 15:33 /usr/local/bin/testapp -> /usr/share/testapp/testapp

Fixes #31
Fixes #101


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/quamotion/dotnet-packaging/pull/135 **Author:** [@qmfrederik](https://github.com/qmfrederik) **Created:** 12/2/2019 **Status:** ✅ Merged **Merged:** 12/2/2019 **Merged by:** [@qmfrederik](https://github.com/qmfrederik) **Base:** `master` ← **Head:** `features/bin-symlink` --- ### 📝 Commits (7) - [`ac4d631`](https://github.com/quamotion/dotnet-packaging/commit/ac4d63189656e1cd20e6f1603fceafeda7a8de23) Add symlink to main executable in /usr/local/bin - [`ef3110d`](https://github.com/quamotion/dotnet-packaging/commit/ef3110defd7c1582e96cd05dfcc0ac67c4bef06f) Update tests - [`bdf1328`](https://github.com/quamotion/dotnet-packaging/commit/bdf132852a07e84da3e2ce556180064818e7ac53) Update unit tets - [`5e16673`](https://github.com/quamotion/dotnet-packaging/commit/5e1667357089609274ec4565fd97f45bc6afd4cf) RPM: Add support for symlinks - [`d522a6a`](https://github.com/quamotion/dotnet-packaging/commit/d522a6a5b71a292ed7f1011d3670016073fe7917) Fix symlink in cpio file - [`3884bd5`](https://github.com/quamotion/dotnet-packaging/commit/3884bd5ee63ac1a2979b3c8bf0b1ecc2936c911d) Properly set symlink file size - [`ed963b0`](https://github.com/quamotion/dotnet-packaging/commit/ed963b0569a845332d2f681ba952dfaeacc4a6e3) Fix typo ### 📊 Changes **12 files changed** (+162 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `Packaging.Targets.Tests/ArchiveBuilderTests.cs` (+53 -2) 📝 `Packaging.Targets/ArchiveBuilder.cs` (+22 -4) 📝 `Packaging.Targets/DebTask.cs` (+8 -0) 📝 `Packaging.Targets/IO/CpioFileCreator.cs` (+44 -0) 📝 `Packaging.Targets/IO/TarFileCreator.cs` (+2 -2) 📝 `Packaging.Targets/Rpm/RpmMetadata.cs` (+1 -1) 📝 `Packaging.Targets/Rpm/RpmPackageCreator.cs` (+10 -0) 📝 `Packaging.Targets/RpmTask.cs` (+9 -0) 📝 `Packaging.Targets/TarballTask.cs` (+1 -0) 📝 `Packaging.Targets/build/Packaging.Targets.targets` (+4 -0) 📝 `molecule/framework-dependent/molecule/default/tests/test_default.py` (+4 -0) 📝 `molecule/self-contained/molecule/default/tests/test_default.py` (+4 -0) </details> ### 📄 Description .NET Core applications now include an "app host", that is, a native executable which loads the .NET Runtime and then invokes the managed executable. This PR adds a symlink to `/usr/local/bin/$(assemblyName)` which links to `$(prefix)/$(assemblyName)`. This means that (in most environments) the project will be executable using just `$(assemblyName)`: ``` fcarlier@fcarlier:~/$ ls -l /usr/local/bin/testapp lrwxrwxrwx 1 root root 26 Dec 2 15:33 /usr/local/bin/testapp -> /usr/share/testapp/testapp ``` Fixes #31 Fixes #101 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:31:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#252