Skip to content

Commit 733adea

Browse files
committed
r0b08x [chore] 3/18/2024, 8:38:41 PM
1 parent c8ac5fb commit 733adea

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
node_modules/.yarn-integrity
1313
package-lock.json
1414

15+
/.flatpak-builder
16+
/.build
17+
generated-sources.json

org.p3x.onenote.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
id: org.p3x.onenote
2+
runtime: org.freedesktop.Platform
3+
runtime-version: '23.08'
4+
sdk: org.freedesktop.Sdk
5+
base: org.electronjs.Electron2.BaseApp
6+
base-version: '23.08'
7+
sdk-extensions:
8+
- org.freedesktop.Sdk.Extension.node18
9+
10+
build-options:
11+
append-path: /usr/lib/sdk/node18/bin
12+
env:
13+
XDG_CACHE_HOME: /run/build/p3x-onenote/flatpak-node/cache
14+
npm_config_cache: /run/build/p3x-onenote/flatpak-node/npm-cache
15+
npm_config_nodedir: /usr/lib/sdk/node18
16+
npm_config_offline: 'true'
17+
18+
command: run.sh
19+
20+
finish-args:
21+
- --share=ipc
22+
- --socket=x11
23+
- --socket=pulseaudio
24+
- --share=network
25+
26+
name: p3x-onenote
27+
buildsystem: simple
28+
subdir: main
29+
sources:
30+
- type: archive
31+
url: https://codeload.github.com/patrikx3/onenote/tar.gz/refs/tags/v2024.4.143
32+
sha256: b592050eb0d0a1bdb9547d4cdb021f64ee20e506b2fd2a5d6ea3c46a532ab6f4
33+
dest: main
34+
- type: script
35+
dest-filename: run.sh
36+
commands:
37+
- zypak-wrapper.sh /app/main/p3x-onenote "$@"
38+
39+
build-commands:
40+
# Install npm dependencies
41+
- npm install --offline
42+
# Build the app; in this example the `dist` script
43+
# in package.json runs electron-builder
44+
- |
45+
. ../flatpak-node/electron-builder-arch-args.sh
46+
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
47+
# Bundle app and dependencies
48+
- cp -a dist/linux*unpacked /app/main
49+
# Install app wrapper
50+
- install -Dm755 -t /app/bin/ ../run.sh

0 commit comments

Comments
 (0)