Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joleaf committed Jan 1, 2023
1 parent ca91d99 commit 501a115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Copy DmnEvaluator.jar
run: cp DmnEvaluator/target/DmnEvaluator*-jar-with-dependencies.jar DmnEvaluator.jar
- name: Create DmnEvaluator.ts
run: echo "export const dmnEvaluatorBase64 = '$(base64 DmnEvaluator.jar)';" > DmnEvaluator.ts
run: echo "export const dmnEvaluatorBase64 = '$(base64 -w 0 DmnEvaluator.jar)';" > DmnEvaluator.ts
- name: Use Node.js
uses: actions/setup-node@v1
with:
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ You can customize the view with the following parameters:
## How to dev

1. Clone this repo into the plugin folder of a (non-productive) vault (`.obsidian/plugins/`)
2. Build DmnEvaluator:
2. Build DmnEvaluator (if changed):
1. `cd DmnEvaluator && mvn --batch-mode --update-snapshots package && cd ..`
2. `cp DmnEvaluator/target/DmnEvaluator*-jar-with-dependencies.jar DmnEvaluator.jar`
3. `echo "export const dmnEvaluatorBase64 = '$(base64 -i DmnEvaluator.jar)';" > DmnEvaluator.ts`
3. Recreate the `DmnEvaluator.ts`
- OSX: `echo "export const dmnEvaluatorBase64 = '$(base64 -i DmnEvaluator.jar)';" > DmnEvaluator.ts`
- Linux: `echo "export const dmnEvaluatorBase64 = '$(base64 -w 0 DmnEvaluator.jar)';" > DmnEvaluator.ts`
3. `npm i`
4. `npm run dev`
5. Toggle the plugin on in the **Community Plugins** tab
Expand Down

0 comments on commit 501a115

Please sign in to comment.