Skip to content

Commit b9cca78

Browse files
maihackehohwille
authored andcommitted
Create service for MacOS to open a devon-ide terminal from context menu. (devonfw#20)
Patch env.sh to make it run under MacOS, too.
1 parent b48379b commit b9cca78

File tree

12 files changed

+408
-3
lines changed

12 files changed

+408
-3
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
* eol=lf
2-
*.bat eol=crlf
2+
*.bat eol=crlf
3+
*.png -text

scripts/src/main/assembly/linux.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
<directory>${project.build.outputDirectory}</directory>
2424
<outputDirectory>./</outputDirectory>
2525
<excludes>
26-
<exclude>system/**</exclude>
26+
<exclude>system/IDEenv/**</exclude>
2727
</excludes>
2828
<includes>
29+
<include>system/Finder/**</include>
2930
<include>**/*.txt</include>
3031
<include>**/*.jar</include>
3132
</includes>

scripts/src/main/assembly/windows.xml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<fileSet>
1111
<directory>${project.build.outputDirectory}</directory>
1212
<outputDirectory>./</outputDirectory>
13+
<excludes>
14+
<exclude>system/Finder/**</exclude>
15+
</excludes>
1316
<includes>
1417
<include>**/*.reg</include>
1518
<include>**/*.bat</include>

scripts/src/main/resources/env.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Source this script from a BASH shell to setup the shell for the corresponding project.
44
#
55

6-
pushd "$(dirname "$BASH_SOURCE")" >/dev/null
6+
pushd "$(dirname "$0")" >/dev/null
77
export OASP_PROJECT_HOME=`pwd`
88

99
. $OASP_PROJECT_HOME/scripts/environment-project
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSServices</key>
6+
<array>
7+
<dict>
8+
<key>NSBackgroundColorName</key>
9+
<string>background</string>
10+
<key>NSIconName</key>
11+
<string>NSTouchBarFolder</string>
12+
<key>NSMenuItem</key>
13+
<dict>
14+
<key>default</key>
15+
<string>Open Devon-Terminal here</string>
16+
</dict>
17+
<key>NSMessage</key>
18+
<string>runWorkflowAsService</string>
19+
<key>NSRequiredContext</key>
20+
<dict>
21+
<key>NSApplicationIdentifier</key>
22+
<string>com.apple.finder</string>
23+
</dict>
24+
<key>NSSendFileTypes</key>
25+
<array>
26+
<string>public.item</string>
27+
</array>
28+
</dict>
29+
</array>
30+
</dict>
31+
</plist>

0 commit comments

Comments
 (0)