Skip to content

Commit b277f72

Browse files
committed
Add Info.plist to make W2E high resolution capable
1 parent e739211 commit b277f72

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

scripts/Info.plist

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict><key>CFBundleIconFile</key>
5+
<string>icon-windowed.icns</string>
6+
<key>CFBundlePackageType</key>
7+
<string>APPL</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>Web2Executable</string>
10+
<key>CFBundleName</key>
11+
<string>Web2Executable</string>
12+
<key>CFBundleShortVersionString</key>
13+
<string>0.6.0</string>
14+
<key>CFBundleExecutable</key>
15+
<string>MacOS/Web2Executable</string>
16+
<key>CFBundleDisplayName</key>
17+
<string>Web2Executable</string>
18+
<key>CFBundleInfoDictionaryVersion</key>
19+
<string>6.0</string>
20+
<key>LSBackgroundOnly</key>
21+
<string>0</string>
22+
<key>NSPrincipalClass</key>
23+
<string>NSApplication</string>
24+
</dict>
25+
</plist>

scripts/build_mac.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pyinstaller -w --hidden-import PIL.Jpeg2KImagePlugin \
5858
FILES_DIR=$BUILD_DIR/Web2Executable.app/Contents/MacOS/files
5959

6060
cp $PROJ_DIR/images/icon.icns $BUILD_DIR/Web2Executable.app/Contents/Resources/icon-windowed.icns
61-
cp -rf files $FILES_DIR
61+
cp -rf $PROJ_DIR/files $FILES_DIR
6262

6363
rm -rf $FILES_DIR/downloads/*
6464
rm $FILES_DIR/error.log \
@@ -74,6 +74,8 @@ rm -rf $PROJ_DIR/build $PROJ_DIR/dist
7474

7575
rm -rf Web2ExeMac*.zip
7676

77+
cp $PROJ_DIR/scripts/Info.plist $BUILD_DIR/Web2Executable.app/Contents/
78+
7779
/Applications/Keka.app/Contents/Resources/keka7z a -r \
7880
Web2ExeMac-CMD.zip $BUILD_DIR/Web2ExeMac-CMD
7981

0 commit comments

Comments
 (0)