Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from LizardByte/nightly
Browse files Browse the repository at this point in the history
v0.3.0
  • Loading branch information
ReenigneArcher authored Feb 11, 2023
2 parents 0d6d9ef + 3fe5e38 commit 6d483a7
Show file tree
Hide file tree
Showing 12 changed files with 574 additions and 75 deletions.
18 changes: 13 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,46 @@ updates:
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "09:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
time: "09:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "10:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "10:30"
target-branch: "nightly"
open-pull-requests-limit: 10
27 changes: 16 additions & 11 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# It uses an action that auto-updates pull requests branches, when changes are pushed to their destination branch.
# Auto-updating to the latest destination branch works only in the context of upstream repo and not forks.
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs.
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs. (disabled)

name: autoupdate

Expand All @@ -34,13 +34,18 @@ jobs:
PR_READY_STATE: "all"
MERGE_CONFLICT_ACTION: "fail"

dependabot-rebase:
name: Dependabot Rebase
if: >-
startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: rebase
uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0"
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
# Disabled due to:
# - no major version tag, resulting in constant nagging to update this action
# - additionally, the code is sketchy, 16k+ lines of code?
# https://github.com/bbeesley/gha-auto-dependabot-rebase/blob/main/dist/main.cjs
#
# dependabot-rebase:
# name: Dependabot Rebase
# if: >-
# startsWith(github.repository, 'LizardByte/')
# runs-on: ubuntu-latest
# steps:
# - name: rebase
# uses: "bbeesley/gha-auto-dependabot-rebase@v1.3.18"
# env:
# GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/issues-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Stale Issues / PRs

on:
schedule:
- cron: '00 00 * * *'
- cron: '00 10 * * *'

jobs:
stale:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Python Tests

on:
pull_request:
branches: [master, nightly]
types: [opened, synchronize, reopened]

jobs:
pytest:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements-dev.txt
- name: Test with pytest
run: |
python -m pytest -v
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.3.0] - 2023-02-10
### Added
- Added argument to allow for adding automatically detected GameStream games and apps
### Fixed
- Updated default `apps.json` based on changes in Sunshine v0.17.0
- Fixed issue where shortcuts with UUID file paths would not import correctly

## [0.2.1] - 2023-01-06
### Fixed
- Allow empty working directories
Expand All @@ -16,3 +23,4 @@
[0.1.0]: https://github.com/LizardByte/GSMS/releases/tag/v0.1.0
[0.2.0]: https://github.com/LizardByte/GSMS/releases/tag/v0.2.0
[0.2.1]: https://github.com/LizardByte/GSMS/releases/tag/v0.2.1
[0.3.0]: https://github.com/LizardByte/GSMS/releases/tag/v0.3.0
28 changes: 16 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ Overview

About
-----
GSMS is a migration tool that allows users to import their custom apps and games from Nvidia Gamestream to
`Sunshine <https://github.com/LizardByte/Sunshine>`_. Note that Nvidia Gamestream support will end in February 2023,
so users who rely on Gamestream may want to consider migrating their library to Sunshine. This program updates the
GSMS is a migration tool that allows users to import their custom apps and games from Nvidia GameStream to
`Sunshine <https://github.com/LizardByte/Sunshine>`_. Note that Nvidia GameStream support has ended in February 2023,
so users who relied on GameStream may want to consider migrating their library to Sunshine. This program updates the
`apps.json` file for Sunshine and copies the corresponding box art images to a specified directory. It reads shortcut
files (.lnk) from the default Gamestream installation location and adds them to Sunshine as new apps. If an app with
files (.lnk) from the default GameStream installation location. Additionally it can add games that were automatically
detected by Nvidia GameStream. The found games and applications are added to Sunshine as new apps. If an app with
the same name already exists in Sunshine, it will be skipped.

This program is intended for users who want to migrate their Gamestream library to Sunshine and have their custom apps
This program is intended for users who want to migrate their GameStream library to Sunshine and have their custom apps
and games available in Sunshine. It can save users the time and effort of manually adding each app to Sunshine and
finding and copying the corresponding box art images. The Gamestraem library and box-art images will not be modified.
finding and copying the corresponding box art images. The GameStream library and box-art images will not be modified.

To use this script, users will need to have both Gamestream and Sunshine installed on their system and have a basic
To use this script, users will need to have both GameStream and Sunshine installed on their system and have a basic
understanding of using the command line. The script can be run with a variety of options to customize its behavior,
such as specifying the `apps.json` file to update, the directory where to copy box art images, and whether to preview
the changes without actually updating the `apps.json` file.

As an alternative option to migrating custom Gamestream apps, you may also migrate any directory containing
As an alternative option to migrating custom GameStream apps, you may also migrate any directory containing
``.lnk`` (shortcut) files. Below is the preferred directory structure of a custom directory. Cover images
(``box-art.png``) is optional.

Expand Down Expand Up @@ -72,22 +73,25 @@ OPTIONS
will be used.

``--dry_run, -d``
If set, the ``apps.json`` file will not be overwritten. Use this flag to preview the changes that would be made
without committing them.
If set, the `apps.json` file will not be overwritten and box-art images won't be copied. Use this flag to preview
the changes that would be made without committing them.

``--no_sleep``
If set, the script will not pause for 10 seconds at the end of the import.

``--nv_add_autodetect, -n``
If set, the script will add all streamable apps from Nvidia GameStream's automatically detected applications.

Examples
^^^^^^^^

To migrate all Gamestream apps to Sunshine and copy box art images to the default directory:
To migrate all GameStream apps to Sunshine and copy box art images to the default directory:

.. code-block:: batch
gsms.exe
To migrate all Gamestream apps to Sunshine and copy box art images to a custom directory:
To migrate all GameStream apps to Sunshine and copy box art images to a custom directory:

.. code-block:: batch
Expand Down
Loading

0 comments on commit 6d483a7

Please sign in to comment.