Skip to content

Commit

Permalink
Merge 2df68f9 into 87a925a
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala authored Aug 26, 2020
2 parents 87a925a + 2df68f9 commit c9dbe8c
Show file tree
Hide file tree
Showing 30 changed files with 742 additions and 378 deletions.
102 changes: 102 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches:
- master

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Dependencies
run: sudo apt-get install -y genisoimage
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Get Maven version
run: echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
- name: Upload Tracks
id: upload-tracks
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: shared/target/tracks.zip
asset_name: tracks.zip
asset_content_type: application/zip
- name: Upload Server Jar
id: upload-server-jar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: server/target/server-${{ env.VERSION }}.jar
asset_name: server-${{ env.VERSION }}.jar
asset_content_type: application/jar
- name: Upload Editor Jar
id: upload-editor-jar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: editor/target/editor-${{ env.VERSION }}.jar
asset_name: editor-${{ env.VERSION }}.jar
asset_content_type: application/jar
- name: Upload Client Jar
id: upload-client-jar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: client/target/client-${{ env.VERSION }}.jar
asset_name: client-${{ env.VERSION }}.jar
asset_content_type: application/jar
- name: Upload Client exe
id: upload-client-exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: client/target/client-${{ env.VERSION }}.exe
asset_name: client-${{ env.VERSION }}.exe
asset_content_type: application/exe
- name: Upload Client dmg
id: upload-client-dmg
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: client/target/client-${{ env.VERSION }}.dmg
asset_name: client-${{ env.VERSION }}.dmg
asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/workspace.xml
.idea/
excluded
out
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

43 changes: 0 additions & 43 deletions client/build.xml

This file was deleted.

2 changes: 1 addition & 1 deletion client/client.iml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="eclipse" classpath-dir="$MODULE_DIR$" rename-to="moduleName" type="JAVA_MODULE" version="4" />
<module classpath="eclipse" classpath-dir="$MODULE_DIR$" org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" rename-to="moduleName" type="JAVA_MODULE" version="4" />
120 changes: 120 additions & 0 deletions client/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>client</artifactId>
<version>1.0</version>

<parent>
<groupId>org.moparforia</groupId>
<artifactId>playforia-minigolf</artifactId>
<version>1.0</version>
</parent>

<properties>
<project.mainClass>org.moparforia.client.Launcher</project.mainClass>
<project.name>Playforia Minigolf Client</project.name>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<version>3.6.6.Final</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>res</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>${project.mainClass}</mainClass>
<addResourcesToClasspath>true</addResourcesToClasspath>
<longClasspath>true</longClasspath>
</configuration>
</plugin>

<plugin>
<groupId>sh.tak.appbundler</groupId>
<artifactId>appbundle-maven-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<bundleName>${project.name}</bundleName>
<iconFile>res/icons/playforia.icns</iconFile>
<mainClass>${project.mainClass}</mainClass>
<generateDiskImageFile>true</generateDiskImageFile>
</configuration>
<executions>
<execution>
<id>osx-build</id>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>windows-build</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<outfile>${project.build.directory}/${project.artifactId}-${project.version}.exe</outfile>
<downloadUrl>http://java.com/download</downloadUrl>
<classPath>
<mainClass>${project.mainClass}</mainClass>
<preCp>anything</preCp>
</classPath>
<icon>res/icons/playforia.ico</icon>
<jre>
<minVersion>1.8.0</minVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>${project.version}</txtFileVersion>
<fileDescription>${project.name}</fileDescription>
<copyright>Maintained by Philipp v. K. - 2020</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0.0.0</txtProductVersion>
<productName>${project.name}</productName>
<internalName>${project.name}</internalName>
<originalFilename>${project.artifactId}-${project.version}.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Binary file added client/res/icons/playforia.icns
Binary file not shown.
Binary file added client/res/icons/playforia.ico
Binary file not shown.
2 changes: 0 additions & 2 deletions client/src/com/aapeli/tools/EncodedXmlReader.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.tools;

import com.sun.xml.internal.bind.v2.runtime.output.Encoded;

import java.io.*;
import java.net.URL;

Expand Down
50 changes: 0 additions & 50 deletions editor/build.xml

This file was deleted.

Loading

0 comments on commit c9dbe8c

Please sign in to comment.