Commit 3f1d14e8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

Update install.sh

parent 1d577b7f
#!/bin/sh #!/bin/sh
echo "#!/usr/bin/env xdg-open echo "#!/usr/bin/env xdg-open
[Desktop Entry] [Desktop Entry]
Version=1.0 Name=Mycard
Name=mycard Name[zh_CN]=Mycard - 萌卡
Name[zh_CN]=萌卡 Comment=a card game platform
Comment=a card game
Comment[zh_CN]=卡片游戏对战客户端 Comment[zh_CN]=卡片游戏对战客户端
Exec=ruby lib/main.rb Exec=/usr/bin/env ruby -KU lib/main.rb %u
Terminal=false Terminal=false
Icon=$(dirname "$0")/graphics/system/icon.gif Icon=$(dirname "$0")/graphics/system/icon.png
Type=Application Type=Application
Categories=Game Categories=Game
Path=$(dirname "$0")" > ~/.local/share/applications/mycard.desktop Path=$(dirname "$0")
URL=http://my-card.in/
MimeType=x-scheme-handler/mycard;application/x-ygopro-deck;application/x-ygopro-replay" > ~/.local/share/applications/mycard.desktop
echo "<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-ygopro-deck">
<comment>ygopro deck</comment>
<icon name="application-x-ygopro-deck"/>
<glob-deleteall/>
<glob pattern="*.ydk"/>
</mime-type>
</mime-info>" > ~/.local/share/mime/packages/application-x-ygopro-deck.xml
echo "<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-ygopro-replay">
<comment>ygopro replay</comment>
<icon name="application-x-ygopro-replay"/>
<glob-deleteall/>
<glob pattern="*.yrp"/>
</mime-type>
</mime-info>" > ~/.local/share/mime/packages/application-x-ygopro-replay.xml
xdg-mime default mycard.desktop application/x-ygopro-deck
xdg-mime default mycard.desktop application/x-ygopro-replay
xdg-mime default mycard.desktop x-scheme-handler/mycard
update-mime-database ~/.local/share/mime
update-desktop-database
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment