-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c561a0b
Showing
378 changed files
with
27,536 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Dreamlink | ||
|
||
 | ||
|
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.