Skip to content

Commit

Permalink
Update for ITAD redesign and rewrite extension in C#
Browse files Browse the repository at this point in the history
  • Loading branch information
bburky committed Jun 1, 2024
1 parent 5991d93 commit a6ad977
Show file tree
Hide file tree
Showing 20 changed files with 887 additions and 117 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
release:
types: [published]

name: Build and Upload Release Asset

jobs:
build:
name: Build and Upload Release Asset
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1

- name: Restore NuGet Packages
run: nuget restore IsthereanydealCollectionSync.sln

- name: Build and Publish
run: |
msbuild IsthereanydealCollectionSync.sln /p:Configuration=Release
$version = ($env:GITHUB_REF -Split "/")[-1]
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Setup Playnite
run: |
mkdir playnite
Invoke-WebRequest -Uri "https://github.com/JosefNemec/Playnite/releases/download/10.33/Playnite1033.zip" -OutFile "playnite\Playnite1033.zip"
Expand-Archive "playnite\Playnite1033.zip" -DestinationPath "playnite"
- name: Package release
run: |
Copy-Item LICENSE bin\release
mkdir release
playnite\toolbox.exe pack "bin\release" "release"
$contents = Get-ChildItem -Path "release" -Force -Recurse -File | Select-Object -First 1
echo "PEXTFILE=$contents" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.PEXTFILE }}
asset_name: IsthereanydealCollectionSync-${{ env.VERSION }}.pext
asset_content_type: application/zip
28 changes: 0 additions & 28 deletions .github/workflows/pext.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
*.swp
*.*~
project.lock.json
.DS_Store
*.pyc
nupkg/

# Visual Studio Code
.vscode

# Rider
.idea

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
msbuild.log
msbuild.err
msbuild.wrn

# Visual Studio 2015
.vs/

packages
12 changes: 12 additions & 0 deletions App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<Style x:Key="BaseTextBlockStyle" TargetType="TextBlock" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Localization/en_US.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
72 changes: 0 additions & 72 deletions IsThereAnyDeal.psm1

This file was deleted.

Loading

0 comments on commit a6ad977

Please sign in to comment.