Skip to content

Commit

Permalink
Merge pull request #17 from ArchLeaders/master
Browse files Browse the repository at this point in the history
Full Rewrite with Linux and (theoretically) MacOS Support
  • Loading branch information
DeltaJordan authored Nov 19, 2022
2 parents 1431ec2 + f4edb33 commit a915c62
Show file tree
Hide file tree
Showing 68 changed files with 1,497 additions and 2,081 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Deploy

on:
push:
tags:
- "v*"

env:
build_windows: "${{ github.workspace }}/build_windows"
build_linux: "${{ github.workspace }}/build_linux"

jobs:
deploy_botw_save_manager_windows:
name: "Deploy BotwSaveManager"
runs-on: windows-latest

env:
proj_desktop: "BotwSaveManager"
proj_console: "BotwSaveManager.Console"

steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: Install DotNET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"

- name: "Get Version"
id: version
uses: battila7/get-version-action@v2

# Windows
- name: Publish ${{ env.proj_desktop }}
run: dotnet publish ${{ env.proj_desktop }}/${{ env.proj_desktop }}.csproj -r win-x64 --configuration Release --version-suffix ${{ steps.version.outputs.version-without-v }} --output ${{ env.build_windows }} --sc false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true

- name: Publish ${{ env.proj_console }}
run: dotnet publish ${{ env.proj_console }}/${{ env.proj_console }}.csproj -r win-x64 --configuration Release --version-suffix ${{ steps.version.outputs.version-without-v }} --output ${{ env.build_windows }} --sc false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true

# Linux
- name: Publish ${{ env.proj_desktop }}
run: dotnet publish ${{ env.proj_desktop }}/${{ env.proj_desktop }}.csproj -r linux-x64 --configuration Release --version-suffix ${{ steps.version.outputs.version-without-v }} --output ${{ env.build_linux }} --sc false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true

- name: Publish ${{ env.proj_console }}
run: dotnet publish ${{ env.proj_console }}/${{ env.proj_console }}.csproj -r linux-x64 --configuration Release --version-suffix ${{ steps.version.outputs.version-without-v }} --output ${{ env.build_linux }} --sc false -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true

# Create Release
- name: "Create Release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: BotwSaveManager - ${{ steps.version.outputs.version }}
prerelease: ${{ contains(steps.version.outputs.version, 'alpha') || contains(steps.version.outputs.version, 'beta') }}

# Windows
- name: "Upload release asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.build_windows }}/${{ env.proj_desktop }}.exe
asset_name: ${{ env.proj_desktop }}-${{ steps.version.outputs.version }}.exe
asset_content_type: application/zip

- name: "Upload release asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.build_windows }}/${{ env.proj_console }}.exe
asset_name: ${{ env.proj_console }}-${{ steps.version.outputs.version }}.exe
asset_content_type: application/zip

# Linux
- name: "Upload release asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.build_linux }}/${{ env.proj_desktop }}
asset_name: ${{ env.proj_desktop }}-${{ steps.version.outputs.version }}-linux
asset_content_type: application/zip

- name: "Upload release asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.build_linux }}/${{ env.proj_console }}
asset_name: ${{ env.proj_console }}-${{ steps.version.outputs.version }}-linux
asset_content_type: application/zip
12 changes: 0 additions & 12 deletions BotWSaveManager.Command/BotWSaveManager.Command.csproj

This file was deleted.

11 changes: 0 additions & 11 deletions BotWSaveManager.Command/Globals.cs

This file was deleted.

128 changes: 0 additions & 128 deletions BotWSaveManager.Command/Program.cs

This file was deleted.

7 changes: 0 additions & 7 deletions BotWSaveManager.Conversion/BotWSaveManager.Conversion.csproj

This file was deleted.

38 changes: 0 additions & 38 deletions BotWSaveManager.Conversion/IO/CopyDir.cs

This file was deleted.

Loading

0 comments on commit a915c62

Please sign in to comment.