Skip to content

Commit

Permalink
Working Linux and MacOS distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 26, 2023
1 parent d0f18be commit 336141c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,30 @@ jobs:
./target/*.dmg
./target/*.deb
- name: Create platform-independent bundle
if: runner.os == 'Windows'
run: |
pushd target
mkdir bundle
mkdir bundle/J3
cp -r lib/ bundle/J3
cp -r runtime/ bundle/J3
cp -r ../data bundle/J3
cp -r ../animations bundle/J3
cp ../COPYING bundle/J3
cp ../README.md bundle/J3
cp ../src/packaging/j3.bat bundle/J3
cp ../src/packaging/j3 bundle/J3
chmod +x bundle/J3/j3
popd
#- name: Create platform-independent bundle
# if: runner.os == 'Windows'
# run: |
# pushd target
# mkdir bundle
# mkdir bundle/J3
# cp -r lib/ bundle/J3
# cp -r runtime/ bundle/J3
# cp -r ../data bundle/J3
# cp -r ../animations bundle/J3
# cp ../COPYING bundle/J3
# cp ../README.md bundle/J3
# cp ../src/packaging/j3.bat bundle/J3
# cp ../src/packaging/j3 bundle/J3
# chmod +x bundle/J3/j3
# popd

- name: Upload platform-independent bundle
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: J3
path: |
./target/bundle
#- name: Upload platform-independent bundle
# if: runner.os == 'Windows'
# uses: actions/upload-artifact@v4
# with:
# name: J3
# path: |
# ./target/bundle

publish:
if: inputs.publish_github
Expand Down Expand Up @@ -101,9 +101,9 @@ jobs:
cp temp/J3-macOS/* release || true
# Run zip from the base directory to avoid including "junk" folders
pushd temp/J3
zip -r ../../release/J3.zip .
popd
#pushd temp/J3
#zip -r ../../release/J3.zip .
#popd
- name: Stage GitHub release
run: |
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ appropriate for your system, such as an MSI on Windows, inside the `target/` fol

We also provide pre-compiled releases for Windows and Linux, available under the Releases page.

### Platform-Independent Version
## Quarantine

For other systems, you may use the platform-independent release `J3.zip`. You will need to install Java with
JavaFX support separately (see instructions above).
This tool is currently not signed for MacOS and might be quarantined after installation. The error will state the
J3 application is damaged, but this can be fixed by running:

```bash

cd /Applications
sudo xattr -r -d com.apple.quarantine J3.app
```
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.j3</groupId>
<artifactId>j3</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<description>J3 - Java 3D Visualization Tool</description>

<!-- This file is based on https://github.com/wiverson/maven-jpackage-template -->
Expand Down

0 comments on commit 336141c

Please sign in to comment.