1
- app-id : com.patrikx3. onenote
1
+ app-id : org.flathub.p3x- onenote
2
2
runtime : org.freedesktop.Platform
3
3
runtime-version : ' 23.08'
4
4
sdk : org.freedesktop.Sdk
@@ -9,33 +9,46 @@ sdk-extensions:
9
9
command : run.sh
10
10
separate-locales : false
11
11
finish-args :
12
- - --share=ipc
13
- - --socket=x11
14
- - --socket=pulseaudio
15
- - --share=network
16
- # - --device=dri
12
+ - " --socket=wayland"
13
+ - " --socket=x11"
14
+ - " --share=ipc"
15
+ - " --device=dri"
16
+ - " --socket=pulseaudio"
17
+ - " --filesystem=home"
18
+ - " --share=network"
19
+ - " --talk-name=org.freedesktop.Notifications"
17
20
build-options :
18
21
append-path : /usr/lib/sdk/node18/bin
19
22
env :
20
23
NPM_CONFIG_LOGLEVEL : info
21
24
modules :
22
- - name : onenote
25
+ - name : p3x- onenote
23
26
buildsystem : simple
24
27
subdir : main
25
28
build-options :
29
+ cflags : -O2 -g
30
+ cxxflags : -O2 -g
26
31
env :
27
- XDG_CACHE_HOME : /run/build/onenote/flatpak-node/cache
28
- npm_config_cache : /run/build/onenote/flatpak-node/npm-cache
32
+ XDG_CACHE_HOME : /run/build/p3x- onenote/flatpak-node/cache
33
+ npm_config_cache : /run/build/p3x- onenote/flatpak-node/npm-cache
29
34
npm_config_offline : ' true'
30
- # PUPPETEER_SKIP_DOWNLOAD: "true"
35
+ YARN_CACHE_FOLDER : /run/build/p3x-onenote/flatpak-node/yarn-cache
31
36
build-commands :
37
+ - node ./scripts/fix-packages-publish.js flathub-before
38
+ - node ./scripts/fix-packages-publish.js before
32
39
# Install npm dependencies
40
+ # - echo $PWD
41
+ # - npm list --cache
33
42
# - npm install --offline
34
- - yarn install --offline
43
+ # - echo $YARN_CACHE_FOLDER
44
+ # - yarn cache list --offline
45
+ - echo "yarn-offline-mirror \"/run/build/p3x-onenote/flatpak-node/yarn-mirror\"" >> .yarnrc
46
+ - yarn cache dir --offline
47
+ - yarn install --offline
35
48
# Build the app; in this example the dist script
36
49
# in package.json runs electron-builder
37
50
- |
38
- . flatpak-node/electron-builder-arch-args.sh
51
+ . ../ flatpak-node/electron-builder-arch-args.sh
39
52
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
40
53
# Bundle app and dependencies
41
54
- cp -a dist/linux*unpacked /app/main
@@ -46,20 +59,20 @@ modules:
46
59
# - install -Dm444 flatpak/br.com.eduk.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
47
60
sources :
48
61
# Getting project
49
- # - type: dir
50
- # path: ..
62
+ # - type: dir
63
+ # path: .
51
64
# dest: main
52
65
# - type: git
53
66
# url: https://github.com/patrikx3/onenote.git
54
67
# tag: v2024.4.146
55
68
# dest: main
56
69
- type : archive
57
70
url : https://github.com/patrikx3/onenote/archive/refs/heads/master.tar.gz
58
- sha256 : 515c4bda541283b8f639397d62870383214d00b4dbe95e2347cb2e1f78645d7a
71
+ sha256 : 22415610e6e10d49e5904eb9e36b9d10a934b05cb9034345725141a0c42abc38
59
72
dest : main
60
73
- generated-sources.json
61
74
# Wrapper to launch the app
62
75
- type : script
63
76
dest-filename : run.sh
64
77
commands :
65
- - zypak-wrapper.sh /app/main/onenote "$@"
78
+ - zypak-wrapper.sh /app/main/p3x- onenote "$@"
0 commit comments