Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tlonny committed Jan 25, 2025
0 parents commit c561a0b
Show file tree
Hide file tree
Showing 378 changed files with 27,536 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check

on: [push]

jobs:
check:
runs-on: ubuntu-22.04
steps:
- name: "Checkout code"
uses: actions/checkout@v2

- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: "Compile"
run: mvn clean compile
117 changes: 117 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Release

on:
push:
branches:
- master

jobs:
create_tag:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_version: ${{ steps.configure.outputs.NEW_VERSION }}
steps:
- name: "Checkout code"
uses: actions/checkout@v2

- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: "Configure"
id: configure
run: |
VERSION=$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)
NEW_VERSION=$(echo $VERSION | awk -F. '{$NF = $NF + 1;} 1' OFS=.)
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: "Bump version"
run: mvn versions:set -DnewVersion=$NEW_VERSION
env:
NEW_VERSION: ${{ steps.configure.outputs.new_version }}

- name: "Compile"
run: mvn clean compile

- name: Create tag
run: |
git add pom.xml
git commit -m "Bump version to $NEW_VERSION [skip ci]"
git tag v$NEW_VERSION
git push
git push --tags
env:
NEW_VERSION: ${{ steps.configure.outputs.new_version }}
build:
needs: create_tag
strategy:
matrix:
include:
- id: "deb-build"
os: ubuntu-22.04
build: "mvn clean compile package jpackage:jpackage"
path: |
dist/*.deb
target/*.jar
- id: "mac-build"
os: macos-14
build: "mvn clean compile package jpackage:jpackage -Pmacos-arm64"
path: |
dist/*.dmg
target/*.jar
- id: "win-build"
os: windows-2022
build: "mvn clean compile package jpackage:jpackage -Pwindows"
path: |
dist/*.msi
target/*.jar
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout code"
uses: actions/checkout@v2
with:
ref: v${{ needs.create_tag.outputs.new_version }}

- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: "Build"
run: ${{ matrix.build }}

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.id }}
path: ${{ matrix.path }}
if-no-files-found: error
release:
needs:
- create_tag
- build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
path: dist

- name: "Make release"
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
tag_name: v${{ needs.create_tag.outputs.new_version }}
files: |
dist/**/*.deb
dist/**/*.dmg
dist/**/*.msi
dist/**/*.jar
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.project
.DS_Store
.classpath
target/
.idea/
.settings/
.log
dist/
levels/
.config.json
*.log
.vscode
.env
.envrc
.histfile
.DS_Store
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Viewing License Version 1.0

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to view the source code solely for personal, educational, or informational purposes, subject to the following conditions:

1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

2. You may not distribute, sublicense, rent, lease, loan, or otherwise make the Software or its source code available to others.

3. Any use of the Software for commercial purposes or modification of the code is prohibited without explicit permission from the copyright holder.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Dreamlink

![ci](https://github.com/tlonny/dreamlink/actions/workflows/release.yml/badge.svg)

Binary file added buildassets/DreamLink.icns
Binary file not shown.
Binary file added buildassets/DreamLink.ico
Binary file not shown.
Binary file added buildassets/DreamLink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c561a0b

Please sign in to comment.