-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and run on windows on GH actions
- Loading branch information
Showing
17 changed files
with
222 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
main.useCsrf=false | ||
nzbhydra.changelogUrl=http://mockserver:5080/changelog | ||
nzbhydra.repositoryBaseUrl=http://mockserver:5080/repos/theotherp/nzbhydra2 | ||
nzbhydra.newsUrl=http://mockserver:5080/static/news.json |
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
37 changes: 37 additions & 0 deletions
37
docker/docker-compose-systemtest/windows/docker-compose.yaml
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,37 @@ | ||
version: '3' | ||
services: | ||
mockserver: | ||
image: ghcr.io/theotherp/mockserver:3.1.0 | ||
container_name: mockserver | ||
ports: | ||
- "5080:5080" | ||
environment: | ||
- spring_profiles_active=build,systemtest | ||
network_mode: "host" | ||
restart: unless-stopped | ||
sonarr: | ||
image: lscr.io/linuxserver/sonarr:latest | ||
container_name: sonarr | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Europe/London | ||
volumes: | ||
- ../../sonarr/data:/config | ||
ports: | ||
- "8989:8989" | ||
network_mode: "host" | ||
restart: unless-stopped | ||
radarr: | ||
image: lscr.io/linuxserver/radarr:latest | ||
container_name: radarr | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Europe/London | ||
volumes: | ||
- ../../radarr/data:/config | ||
ports: | ||
- "7878:7878" | ||
network_mode: "host" | ||
restart: unless-stopped |
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
File renamed without changes.
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,3 +1,5 @@ | ||
server.port=5080 | ||
#spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/ | ||
warnLogCategory | ||
management.endpoints.web.exposure.include=* | ||
management.endpoint.shutdown.enabled=true | ||
endpoints.shutdown.enabled=true |
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,5 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import logging | ||
# (C) Copyright 2023 TheOtherP ([email protected]) | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
@@ -16,12 +16,20 @@ | |
# Just for pyinstaller | ||
|
||
import sys | ||
import time | ||
|
||
import nzbhydra2wrapperPy3 | ||
import systemTray | ||
|
||
if __name__ == '__main__': | ||
thread = systemTray.start() | ||
nzbhydra2wrapperPy3.quiet = True | ||
nzbhydra2wrapperPy3.main(sys.argv[1:]) | ||
systemTray.stop() | ||
try: | ||
nzbhydra2wrapperPy3.main(sys.argv[1:]) | ||
systemTray.stop() | ||
except SystemExit as e: | ||
logging.getLogger('root').info("Wrapper main thread quit") | ||
# For some reason thread / process is kept alive without sleeping | ||
time.sleep(1) | ||
systemTray.stop() | ||
sys.exit(e.code) |
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
Oops, something went wrong.