Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
3f1d14e8
Commit
3f1d14e8
authored
Mar 04, 2013
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install.sh
parent
1d577b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
install.sh
install.sh
+35
-7
No files found.
install.sh
View file @
3f1d14e8
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment