Skip to content

Commit

Permalink
#100 wip (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-claw authored May 24, 2023
1 parent ed63d5c commit e577dba
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Package

on:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B install --file pom.xml
- name: Rename GUI artifact
run: mv vripper-gui/target/vripper-gui-*.jar vripper-gui/target/vripper-gui.jar
- name: Rename WEB artifact
run: mv vripper-web/target/vripper-web-*.jar vripper-web/target/vripper-web.jar
- name: Package Linux
run: |
cd jpackage
jpackage --app-version 4.1.0 --type deb "@jpackage.cfg" "@jpackage-linux.cfg"
jpackage --app-version 4.1.0 --type rpm "@jpackage.cfg" "@jpackage-linux.cfg"
ls -la
Binary file added jpackage/icon.ico
Binary file not shown.
Binary file added jpackage/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added jpackage/jar/.keep
Empty file.
6 changes: 6 additions & 0 deletions jpackage/jpackage-linux.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--icon icon.png
--java-options "-Dbase.dir=${user.home}/.config"
--linux-package-name vripper
--linux-menu-group Utility
--linux-app-category java
--linux-shortcut
5 changes: 5 additions & 0 deletions jpackage/jpackage-macos.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--type pkg
--icon icon.png
--java-options "-Dbase.dir=${user.home}/.config"
--mac-package-identifier me.mnlr.vripper.vripper-gui
--mac-package-name VRipper
9 changes: 9 additions & 0 deletions jpackage/jpackage-windows.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--type msi
--icon icon.ico
--java-options "-Dbase.dir=${user.home}"
--win-dir-chooser
--win-menu
--win-per-user-install
--win-shortcut
--win-shortcut-prompt
--win-update-url https://github.com/death-claw/vripper-project/releases
8 changes: 8 additions & 0 deletions jpackage/jpackage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--input jar
--main-jar vripper-gui.jar
--add-modules java.base,java.desktop,java.sql,jdk.unsupported,jdk.crypto.ec,java.security.jgss
--jlink-options "--strip-native-commands --strip-debug --no-man-pages --no-header-files --compress=2"
--name VRipper
--description "Image ripper tool for vipergirls"
--dest dist
--vendor "death-claw"

0 comments on commit e577dba

Please sign in to comment.