Skip to content

Commit

Permalink
Merge branch 'main' into account-anbinden
Browse files Browse the repository at this point in the history
  • Loading branch information
jas20202 committed Jul 18, 2024
2 parents cc7e2bb + b4dbb95 commit 81765a7
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build_avalonia_on_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Avalonia on Pull Request

on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: |
cd PWManager.Avalonia
dotnet restore
- name: Build
run: |
cd PWManager.Avalonia
dotnet build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build on Pull Request
name: Build CLI on Pull Request

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You can find further documentation in the [Wiki](https://github.com/CUMGroup/PWM
## Envrionment Setup
You will need a version of [**.NET 8**](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) installed on your computer.

After cloning the repository run the `build.sh` (Linux) or the `build.bat` (Windows) script. You will find your executable in `./PWManager.CLI/bin/Release/net7.0/`
After cloning the repository run the `build.sh` (Linux) or the `build.bat` (Windows) script. You will find your executable in `./PWManager.CLI/bin/Release/net8.0/`

(To run via the dotnet cli you can run `dotnet run` in the `./PWManager.CLI/` directory)

Expand Down
28 changes: 28 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
read -p "Enter version number: " version
read -p "Enter message: " message

git tag -a $version -m "$message"
git push origin $version

rm -rf bin
mkdir bin

cd PWManager.CLI
rm -rf bin/Release

dotnet restore

dotnet build --runtime linux-x64 --configuration Release
dotnet build --runtime win-x64 --configuration Release

cd bin/Release/net8.0
tar -czvf cli-linux-x64.tar.gz linux-x64
tar -czvf cli-win-x64.tar.gz win-x64

sha256sum cli-linux-x64.tar.gz >> checksums.txt
sha256sum cli-win-x64.tar.gz >> checksums.txt

rm -rf win-x64
rm -rf linux-x64

mv * ../../../../bin

0 comments on commit 81765a7

Please sign in to comment.