diff --git a/.forgejo/workflows/dotnet.yaml b/.forgejo/workflows/dotnet.yaml new file mode 100644 index 0000000..2d15fe9 --- /dev/null +++ b/.forgejo/workflows/dotnet.yaml @@ -0,0 +1,81 @@ +name: Java CI + +on: + push: + branches: + - master + +jobs: + test: + runs-on: arch-rolling + + + steps: + - name: Check Dotnet Version + run: | + dotnet --version + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Extract FileVersion from .csproj + id: get_version + run: | + version=$(grep -oPm1 "(?<=)[^<]+" Cryptura/Cryptura.csproj) + echo "Cryptura version: $version" + echo "version=$version" >> $GITHUB_OUTPUT + + + - name: Check if release tag already exists + run: | + tag="v${{ steps.get_version.outputs.version }}" + if git ls-remote --tags origin | grep -q "refs/tags/$tag"; then + echo "Release tag $tag already exists. Cancelling workflow." + exit 1 + fi + + - name: Build the project (Linux x64) + run: | + dotnet publish ./Cryptura/Cryptura.csproj \ + -c Release \ + -r linux-x64 \ + --self-contained true \ + -p:PublishSingleFile=true \ + -p:PublishTrimmed=true \ + -o ./output_linux + - name: Build the project (Windows x64) + run: | + dotnet publish ./Cryptura/Cryptura.csproj \ + -c Release \ + -r win-x64 \ + --self-contained true \ + -p:PublishSingleFile=true \ + -p:PublishTrimmed=true \ + -o ./output_win + + + - name: Pack Releases into Zips + run: | + mkdir -p ./release + zip -r ./release/Cryptura_Linux_x64.zip ./output_linux + zip -r ./release/Cryptura_Windows_x64.zip ./output_win + rm -rf ./output_linux ./output_win + + + - name: Create Git tag + run: | + git config user.name "WeeXnes" + git config user.email "somtrigi@gmail.com" + git tag v${{ steps.get_version.outputs.version }} + git push origin v${{ steps.get_version.outputs.version }} + + - name: Upload to Forgejo + uses: actions/forgejo-release@v2.6.0 + with: + direction: upload + url: https://git.weexnes.dev/ + repo: WeeXnes/Cryptura + token: ${{ secrets.RELEASE_TOKEN }} + tag: v${{ steps.get_version.outputs.version }} + release-dir: release + release-notes: "Automated release for version ${{ steps.get_version.outputs.version }}" \ No newline at end of file diff --git a/Cryptura/Cryptura.csproj b/Cryptura/Cryptura.csproj index 9ccc65a..938a6e6 100644 --- a/Cryptura/Cryptura.csproj +++ b/Cryptura/Cryptura.csproj @@ -6,6 +6,8 @@ true app.manifest true + 1.0 + 1.0 diff --git a/Cryptura/Globals.cs b/Cryptura/Globals.cs index d437854..b2d1856 100644 --- a/Cryptura/Globals.cs +++ b/Cryptura/Globals.cs @@ -18,4 +18,27 @@ public class Globals { return Guid.NewGuid() + ".wx"; } +} + + +public static class ColorScheme +{ + public static class Primary + { + public static string Color_1 = "#28548a"; + public static string Color_2 = "#446597"; + public static string Color_3 = "#5c77a3"; + public static string Color_4 = "#7489b0"; + public static string Color_5 = "#8b9cbd"; + public static string Color_6 = "#a1afca"; + } + public static class Surface + { + public static string Color_1 = "#161a21"; + public static string Color_2 = "#2b2f36"; + public static string Color_3 = "#42454c"; + public static string Color_4 = "#5a5d63"; + public static string Color_5 = "#73767b"; + public static string Color_6 = "#8e9094"; + } } \ No newline at end of file diff --git a/Cryptura/MainWindow.axaml b/Cryptura/MainWindow.axaml index 4c29f3d..d628e3d 100644 --- a/Cryptura/MainWindow.axaml +++ b/Cryptura/MainWindow.axaml @@ -23,33 +23,58 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + +