diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..0d81567 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,21 @@ +name: Linux + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + + - name: Set version + id: set_version + run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + + - name: Build + run: make diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..2cf5b95 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,56 @@ +name: Windows + +on: [push, pull_request] + +env: + PROJECT_NAME: cdecrypt + FRIENDLY_NAME: CDecrypt + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + + - name: Set version + shell: bash + id: set_version + run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + + - name: Set major and minor + uses: actions-ecosystem/action-regex-match@v2 + id: regex_match + with: + text: ${{ steps.set_version.outputs.version }} + regex: 'v(\d+)\.(\d+)' + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1 + + - name: Build + run: msbuild ${{ env.PROJECT_NAME }}.sln /m /p:Configuration=Release /p:Platform=x86 /p:AppVersion=${{ steps.set_version.outputs.version }} /p:AppMajor=${{ steps.regex_match.outputs.group1 }} /p:AppMinor=${{ steps.regex_match.outputs.group2 }} + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ env.PROJECT_NAME }} + path: ./x86/Release/*.exe + + - name: Prepare release + if: startsWith(github.ref, 'refs/tags/') + run: | + 7z a ${{ env.PROJECT_NAME }}.zip .\x86\Release\*.exe README.md LICENSE.txt + sha256sum ${{ env.PROJECT_NAME }}.zip + + - name: Upload release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + token: ${{ secrets.GITHUB_TOKEN }} + body: ${{ env.FRIENDLY_NAME}} ${{ steps.set_version.outputs.version }} + files: ./*.zip diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index f232456..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,31 +0,0 @@ -image: Visual Studio 2019 - -skip_non_tags: true - -environment: - PROJECT_NAME: cdecrypt - FRIENDLY_NAME: CDecrypt - -build_script: - ps: |- - $env:APPVEYOR_REPO_TAG_NAME -match 'v(\d+)\.(\d+)' - msbuild "$env:PROJECT_NAME.sln" /m /p:Configuration=Release /p:Platform=x86 /p:AppVersion=$env:APPVEYOR_REPO_TAG_NAME /p:AppMajor=$($matches[1]) /p:AppMinor=$($matches[2]) /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - -after_build: - ps: |- - 7z a "$env:PROJECT_NAME.zip" .\x86\Release\*.exe README.md LICENSE.txt - Get-FileHash "$env:PROJECT_NAME.zip" -Algorithm SHA256 | Format-List - -artifacts: - - path: $(PROJECT_NAME).zip - name: $(FRIENDLY_NAME) - -deploy: - release: $(APPVEYOR_REPO_TAG_NAME) - description: $(FRIENDLY_NAME) $(APPVEYOR_REPO_TAG_NAME) - provider: GitHub - auth_token: - secure: NJtYKU1LEV3Y13rBlM/EU93LwU7di/h2o/Sa0niABhIhFqD5Q2/jjbHYbS45IPhf - artifact: /.*\.zip/ - draft: false - prerelease: false diff --git a/cdecrypt.c b/cdecrypt.c index 3cae981..1d75c0e 100644 --- a/cdecrypt.c +++ b/cdecrypt.c @@ -360,7 +360,7 @@ int main_utf8(int argc, char** argv) if (argc < 2) { printf("%s %s - Wii U NUS content file decrypter\n" - "Copyright (c) 2020-2022 VitaSmith, Copyright (c) 2013-2015 crediar\n" + "Copyright (c) 2020-2023 VitaSmith, Copyright (c) 2013-2015 crediar\n" "Visit https://github.com/VitaSmith/cdecrypt for official source and downloads.\n\n" "Usage: %s \n\n" "This program is free software; you can redistribute it and/or modify it under\n" diff --git a/cdecrypt.rc b/cdecrypt.rc index 2cadb41..e024ca7 100644 --- a/cdecrypt.rc +++ b/cdecrypt.rc @@ -44,7 +44,7 @@ BEGIN VALUE "FileDescription", APP_DESC VALUE "FileVersion", TO_STRING(APP_MAJOR) "," TO_STRING(APP_MINOR) ",0,0" VALUE "InternalName", APP_NAME - VALUE "LegalCopyright", "Copyright © 2020 VitaSmith, Copyright © 2013-2015 crediar" + VALUE "LegalCopyright", "Copyright © 2020-2023 VitaSmith, Copyright © 2013-2015 crediar" VALUE "OriginalFilename", EXE_NAME VALUE "ProductName", APP_NAME VALUE "ProductVersion", TO_STRING(APP_MAJOR) "," TO_STRING(APP_MINOR) ",0,0"