Comments (3)
To create an installer package for Buildarr on Windows, there are two options:
- Use PyInstaller to generate a statically linked executable containing Python, Buildarr and all the plugins to bundle. Then use NSIS to create an installer package.
- This method is simpler in implementation and relatively simple to automate builds for on GitHub Actions.
- PyInstaller and NSIS are both mature and well-maintained software.
- Less flexible, since Python packages cannot be installed or updated after the fact.
- Use
pynsist
to create an NSIS-based installer package that contains Python, Buildarr and bundled plugins.- This is the ideal way to build the package, since it does not statically link Python and the script together into a single executable, instead keeping all of them as separate files. This allows the Python packages themselves to be changed/updated after installation, which is particularly relevant to Buildarr as it is plugin-based.
- Building on other platforms is supported, meaning that builds can be automated on GitHub Actions.
pynsist
appears to be a popular project, but there are concerns regarding future maintenance, with the last commit in April 2022.
Of these choices, I prefer option 2, and will investigate integrating building the installer into GitHub Actions.
from buildarr.
Buildarr can be run as a Windows service using the pywin32
library.
The script would be implemented something like the following:
import signal
import socket
import servicemanager
import win32event
import win32service
import win32serviceutil
from buildarr.cli import main as buildarr_cli
class BuildarrService(win32serviceutil.ServiceFramework):
_svc_name_ = "Buildarr"
_svc_display_name_ = "Buildarr Daemon"
def __init__(self, args):
super().__init__(args)
self.hWaitStop = win32event.CreateEvent(None, 0, 0, None)
socket.setdefaulttimeout(60)
def SvcDoRun(self):
servicemanager.LogMsg(
servicemanager.EVENTLOG_INFORMATION_TYPE,
servicemanager.PYS_SERVICE_STARTED,
(self._svc_name_, ""),
)
buildarr_cli.main()
def SvcStop(self):
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
win32event.SetEvent(self.hWaitStop)
signal.raise_signal(signal.SIGTERM)
if __name__ == "__main__":
win32serviceutil.HandleCommandLine(BuildarrService)
from buildarr.
A Buildarr Installer for Windows is now available, with new installation instructions written:
https://buildarr.github.io/installation/windows
Buildarr does not yet natively support running as a Windows service. However, using NSSM, the Buildarr executable can be registered to run as a Windows service (alongside Sonarr, Radarr, etc). This is also documented in the above link.
from buildarr.
Related Issues (20)
- Make `depends_on` in `buildarr compose` optional HOT 1
- Replace `field_default` with `optional` HOT 1
- Make the `manager` field on a plugin object optional
- Not issue Need guidance QNAP - Container Station - Portainer HOT 1
- error occurred while applying initial configuration: 1 validation error for RadarrApplication HOT 15
- `aenum` maintenance HOT 1
- Tag v0.8.0b1
- Rearchitect the `buildarr` Python package HOT 1
- Re-implement `BaseIntEnum`
- Add functional tests for configuration merging on file load
- Add formatting logic for `dict` type values in `ConfigBase._format_attr`
- Add a mechanism for retrying failed requests
- Resource type updating can fail when unexpected remote attributes are found
- instructions and details on yaml configuration and placement HOT 1
- Add `passwordConfirmation` handling to *Arr general settings models HOT 1
- Add built-in encoding/decoding support for IPv4/IPv6 addresses
- Add an `OSAgnosticPath` type
- Issue when running dump-config
- Plugin Contribution Questions
- Plugin Contribution Questions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildarr.