Skip to content

Commit

Permalink
add github workflow to automate exe
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Sep 4, 2024
1 parent 7bf42c2 commit 2593de8
Show file tree
Hide file tree
Showing 57 changed files with 82 additions and 26 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build Workflow

on:
push:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt' # Optional, you can choose other JDK providers (e.g., zulu)
java-version: '17'

- name: Build with Maven
run: mvn package

- name: Create EXE using Launch4j
run: |
curl -L https://github.com/launch4j/launch4j/releases/download/3.14/launch4j-3.14-win32.msi --output launch4j.msi
msiexec /i launch4j.msi /quiet
launch4j --output target/MDCstudentSIMULATOR.exe --jar target/gs-maven-0.1.0.jar --outfile target/MDCstudentSIMULATOR.exe
shell: bash

- name: Upload EXE artifact
uses: actions/upload-artifact@v2
with:
name: app_executable
path: target/MDCstudentSIMULATOR.exe

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: "Release ${{ github.ref_name }}"
body: "Release created by GitHub Actions"
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/MDCstudentSIMULATOR.exe
asset_name: MDCstudentSIMULATOR.exe
asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.jar
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
hi:
java -jar target/gs-maven-0.1.0-shaded.jar
mvn package
java -jar target/gs-maven-0.1.0.jar
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MDCstudentSIMULATOR

To compile and play the game, you need maven and make.
You can install these using chocolatey with `choco install maven make -y`
Then, clone the repo, change directory to the repo, and say `make`

## Play this on replit! https://replit.com/@JacquesFleische/MDCstudentSIMULATOR


Expand Down
Binary file modified target/classes/hello/CharacterSelect$1.class
Binary file not shown.
Binary file modified target/classes/hello/CharacterSelect$2.class
Binary file not shown.
Binary file modified target/classes/hello/CharacterSelect$3.class
Binary file not shown.
Binary file modified target/classes/hello/CharacterSelect$4.class
Binary file not shown.
Binary file modified target/classes/hello/CharacterSelect$5.class
Binary file not shown.
Binary file modified target/classes/hello/CharacterSelect.class
Binary file not shown.
Binary file modified target/classes/hello/GameStart$1.class
Binary file not shown.
Binary file modified target/classes/hello/GameStart$2.class
Binary file not shown.
Binary file modified target/classes/hello/GameStart.class
Binary file not shown.
Binary file modified target/classes/hello/Lecture$1.class
Binary file not shown.
Binary file modified target/classes/hello/Lecture$2.class
Binary file not shown.
Binary file modified target/classes/hello/Lecture.class
Binary file not shown.
Binary file modified target/classes/hello/LosingScreen$1.class
Binary file not shown.
Binary file modified target/classes/hello/LosingScreen$2.class
Binary file not shown.
Binary file modified target/classes/hello/LosingScreen.class
Binary file not shown.
Binary file modified target/classes/hello/MainWindow$1.class
Binary file not shown.
Binary file modified target/classes/hello/MainWindow$2.class
Binary file not shown.
Binary file modified target/classes/hello/MainWindow$3.class
Binary file not shown.
Binary file modified target/classes/hello/MainWindow$4.class
Binary file not shown.
Binary file modified target/classes/hello/MainWindow.class
Binary file not shown.
Binary file modified target/classes/hello/Party$1.class
Binary file not shown.
Binary file modified target/classes/hello/Party$2.class
Binary file not shown.
Binary file modified target/classes/hello/Party.class
Binary file not shown.
Binary file modified target/classes/hello/PausablePlayer$1.class
Binary file not shown.
Binary file modified target/classes/hello/PausablePlayer.class
Binary file not shown.
Binary file modified target/classes/hello/StretchIcon.class
Binary file not shown.
Binary file modified target/classes/hello/StudentSimulator.class
Binary file not shown.
Binary file modified target/classes/hello/Study$1.class
Binary file not shown.
Binary file modified target/classes/hello/Study$2.class
Binary file not shown.
Binary file modified target/classes/hello/Study.class
Binary file not shown.
Binary file modified target/classes/hello/VideoGame$1.class
Binary file not shown.
Binary file modified target/classes/hello/VideoGame$2.class
Binary file not shown.
Binary file modified target/classes/hello/VideoGame.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$1.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$2.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$3.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$4.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$5.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$6.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$7.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen$RoundedBorder.class
Binary file not shown.
Binary file modified target/classes/hello/WhereThingsHappen.class
Binary file not shown.
Binary file modified target/classes/hello/WhichCharacter.class
Binary file not shown.
Binary file modified target/classes/hello/WinningScreen$1.class
Binary file not shown.
Binary file modified target/classes/hello/WinningScreen$2.class
Binary file not shown.
Binary file modified target/classes/hello/WinningScreen.class
Binary file not shown.
Binary file modified target/classes/hello/levels.class
Binary file not shown.
Binary file modified target/classes/hello/playermusic$1.class
Binary file not shown.
Binary file modified target/classes/hello/playermusic.class
Binary file not shown.
3 changes: 0 additions & 3 deletions target/gs-maven-0.1.0-shaded.jar

This file was deleted.

3 changes: 0 additions & 3 deletions target/gs-maven-0.1.0.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\GameStart.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WhereThingsHappen.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Study.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Party.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WhichCharacter.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\playermusic.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Lecture.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\PausablePlayer.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\VideoGame.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\LosingScreen.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\StudentSimulator.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\CharacterSelect.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\StretchIcon.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\MainWindow.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\levels.java
C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WinningScreen.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\CharacterSelect.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\GameStart.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Lecture.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\levels.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\LosingScreen.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\MainWindow.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Party.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\PausablePlayer.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\playermusic.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\StretchIcon.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\StudentSimulator.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Study.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\VideoGame.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WhereThingsHappen.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WhichCharacter.java
C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WinningScreen.java
3 changes: 0 additions & 3 deletions target/original-gs-maven-0.1.0.jar

This file was deleted.

0 comments on commit 2593de8

Please sign in to comment.