-
Notifications
You must be signed in to change notification settings - Fork 39
/
org.notepad_plus_plus.Notepad-plus-plus.yml
113 lines (106 loc) · 4.42 KB
/
org.notepad_plus_plus.Notepad-plus-plus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
app-id: org.notepad_plus_plus.Notepad-plus-plus
branch: stable
runtime: org.winepak.Platform
runtime-version: 3.0
sdk: org.winepak.Sdk
command: notepad++
add-extensions:
org.winepak.Platform.Compat32:
directory: lib/32bit
version: 3.0
add-ld-path: lib
no-autodownload: false
finish-args:
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --allow=multiarch
modules:
- name: setup-compat32
buildsystem: simple
build-commands:
- mkdir -p /app/lib/32bit
- ln -s /app/lib/32bit/lib/ld-linux.so.2 /app/lib/ld-linux.so.2
- name: notepad++
buildsystem: simple
build-commands:
- install -d /app/bin
- install apply_extra /app/bin
- install notepad++ /app/bin
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.appdata.xml /app/share/appdata/org.notepad_plus_plus.Notepad-plus-plus.appdata.xml
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.desktop /app/share/applications/org.notepad_plus_plus.Notepad-plus-plus.desktop
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.256x256.png /app/share/icons/hicolor/256x256/apps/org.notepad_plus_plus.Notepad-plus-plus.png
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.128x128.png /app/share/icons/hicolor/128x128/apps/org.notepad_plus_plus.Notepad-plus-plus.png
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.64x64.png /app/share/icons/hicolor/64x64/apps/org.notepad_plus_plus.Notepad-plus-plus.png
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.48x48.png /app/share/icons/hicolor/48x48/apps/org.notepad_plus_plus.Notepad-plus-plus.png
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.32x32.png /app/share/icons/hicolor/32x32/apps/org.notepad_plus_plus.Notepad-plus-plus.png
- install -Dm644 org.notepad_plus_plus.Notepad-plus-plus.16x16.png /app/share/icons/hicolor/16x16/apps/org.notepad_plus_plus.Notepad-plus-plus.png
sources:
- type: extra-data
only-arches:
- x86_64
url: https://notepad-plus-plus.org/repository/7.x/7.5.6/npp.7.5.6.bin.x64.zip
sha256: 423a0387b5997c215188f37d514e744b318b6d82180636af6a125542d949fc99
size: 4984867
filename: notepad++.zip
- type: extra-data
only-arches:
- i386
url: https://notepad-plus-plus.org/repository/7.x/7.5.6/npp.7.5.6.bin.zip
sha256: 7cb1bb1a0b58b52e8df7df9bb2a5af1b4d20d4a7df529de7c4fdc1b97221b705
size: 4525054
filename: notepad++.zip
- type: script
dest-filename: apply_extra
commands:
- mkdir -p /app/extra/notepad++
- unzip -qq -d /app/extra/notepad++ notepad++.zip
- rm notepad++.zip
- type: script
only-arches:
- x86_64
dest-filename: notepad++
commands:
- export WINEARCH=win64
-
# Notepad++ writes it's config files in the current directory
# Running files in /app/extra wont work, instead make a copy to
# /var/data a.k.a $XDG_DATA_HOME
- mkdir -p /var/data/notepad++
- cp -a /app/extra/notepad++ /var/data
-
- wineboot
-
- wine64 /var/data/notepad++/notepad++.exe "$@"
- type: script
only-arches:
- i386
dest-filename: notepad++
commands:
- export WINEARCH=win32
-
# Notepad++ writes it's config files in the current directory
# Running files in /app/extra wont work, instead make a copy to
# /var/data a.k.a $XDG_DATA_HOME
- mkdir -p /var/data/notepad++
- cp -a /app/extra/notepad++ /var/data
-
- wineboot
-
- wine /var/data/notepad++/notepad++.exe "$@"
- type: file
path: org.notepad_plus_plus.Notepad-plus-plus.appdata.xml
- type: file
path: org.notepad_plus_plus.Notepad-plus-plus.desktop
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.256x256.png
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.128x128.png
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.64x64.png
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.48x48.png
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.32x32.png
- type: file
path: icons/org.notepad_plus_plus.Notepad-plus-plus.16x16.png