mirror of
https://github.com/lutris/lutris
synced 2024-10-07 08:19:07 +00:00
packaging problems
This commit is contained in:
parent
cd10ff30ce
commit
bafcdf39c0
2
.quickly
2
.quickly
|
@ -1,4 +1,4 @@
|
||||||
project = lutris
|
project = lutris
|
||||||
template = ubuntu-application
|
template = ubuntu-application
|
||||||
lp_id = lutris
|
lp_id = lutris
|
||||||
version = 0.4.3
|
version = 0.6
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Apport integration for lutris
|
# Apport integration for lutris
|
||||||
#
|
#
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
12
debian/control
vendored
12
debian/control
vendored
|
@ -5,16 +5,14 @@ Build-Depends: cdbs (>= 0.4.43), debhelper (>= 6), python,
|
||||||
python-support (>= 0.6.4), python-distutils-extra (>= 2.10)
|
python-support (>= 0.6.4), python-distutils-extra (>= 2.10)
|
||||||
Maintainer: Mathieu Comandon <strycore@gmail.com>
|
Maintainer: Mathieu Comandon <strycore@gmail.com>
|
||||||
Standards-Version: 3.9.1
|
Standards-Version: 3.9.1
|
||||||
XS-Python-Version: current
|
|
||||||
|
|
||||||
Package: lutris
|
Package: lutris
|
||||||
Architecture: all
|
Architecture: all
|
||||||
XB-Python-Version: ${python:Versions}
|
Depends: ${misc:Depends}, ${python:Depends}, python-apport, python-pyglet,
|
||||||
Depends: ${misc:Depends}, ${python:Depends}, python-apport,
|
python-gobject, python-apt, python-gtk2, python-yaml, python-gconf, joy2key
|
||||||
python-gobject, python-apt, python-gtk2, python-yaml, python-gconf, python-pyglet
|
|
||||||
Description: Install and play any video game easily
|
Description: Install and play any video game easily
|
||||||
Lutris is a gaming platform for GNU/Linux. It's goal is to make
|
Lutris is a gaming platform for GNU/Linux. It's goal is to make
|
||||||
gaming on Linux as easy as possible by taking care of installing
|
gaming on Linux as easy as possible by taking care of installing
|
||||||
and setting up the game for the user. The only thing you have to
|
and setting up the game for the user. The only thing you have to
|
||||||
do is play the game. It aims to support every game that is playable
|
do is play the game. It aims to support every game that is playable
|
||||||
on Linux.
|
on Linux.
|
||||||
|
|
1
debian/pycompat
vendored
Normal file
1
debian/pycompat
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2
|
1
debian/pyversions
vendored
Normal file
1
debian/pyversions
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2.6
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
|
|
@ -35,7 +35,7 @@ class jzintv(Runner):
|
||||||
|
|
||||||
|
|
||||||
self.description = "Intellivision Emulator"
|
self.description = "Intellivision Emulator"
|
||||||
|
|
||||||
self.game_options = [{"option":"rom","type":"single","label":"Rom File"}]
|
self.game_options = [{"option":"rom","type":"single","label":"Rom File"}]
|
||||||
self.runner_options = [{"option": "bios_path", "type":"directory_chooser", "label":"Bios Path"},
|
self.runner_options = [{"option": "bios_path", "type":"directory_chooser", "label":"Bios Path"},
|
||||||
{"option": "fullscreen", "type":"bool", "label":"Fullscreen"},
|
{"option": "fullscreen", "type":"bool", "label":"Fullscreen"},
|
||||||
|
@ -59,4 +59,4 @@ class jzintv(Runner):
|
||||||
def play(self):
|
def play(self):
|
||||||
command = [self.executable] + self.arguments
|
command = [self.executable] + self.arguments
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
|
@ -61,9 +61,9 @@ class o2em(Runner):
|
||||||
romfile = os.path.basename(settings["game"]["rom"])
|
romfile = os.path.basename(settings["game"]["rom"])
|
||||||
self.arguments = self.arguments + ["-romdir=\"%s\"" % romdir+"/"]
|
self.arguments = self.arguments + ["-romdir=\"%s\"" % romdir+"/"]
|
||||||
self.arguments = self.arguments + ["\""+romfile+"\""]
|
self.arguments = self.arguments + ["\""+romfile+"\""]
|
||||||
|
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
command = [self.executable] + self.arguments
|
command = [self.executable] + self.arguments
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,8 @@ class openmsx(Runner):
|
||||||
self.runner_options = []
|
self.runner_options = []
|
||||||
if settings:
|
if settings:
|
||||||
self.rom = settings["game"]["rom"]
|
self.rom = settings["game"]["rom"]
|
||||||
|
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
command = [self.executable,"\""+self.rom+"\""]
|
command = [self.executable,"\""+self.rom+"\""]
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ class scummvm(Runner):
|
||||||
self.runner_options = [ \
|
self.runner_options = [ \
|
||||||
{"option":"fullscreen", "label":"Fullscreen", "type":"bool"},
|
{"option":"fullscreen", "label":"Fullscreen", "type":"bool"},
|
||||||
{"option":"gfx-mode", "label": "Graphics scaler", "type":"one_choice", "choices":scaler_modes}]
|
{"option":"gfx-mode", "label": "Graphics scaler", "type":"one_choice", "choices":scaler_modes}]
|
||||||
|
|
||||||
if isinstance(settings, LutrisConfig):
|
if isinstance(settings, LutrisConfig):
|
||||||
config = settings.config
|
config = settings.config
|
||||||
if "scummvm" in config:
|
if "scummvm" in config:
|
||||||
|
@ -64,7 +64,7 @@ class scummvm(Runner):
|
||||||
if "gfx-mode" in config["scummvm"]:
|
if "gfx-mode" in config["scummvm"]:
|
||||||
self.gfxmode = "--gfx-mode="+config["scummvm"]["gfx-mode"]
|
self.gfxmode = "--gfx-mode="+config["scummvm"]["gfx-mode"]
|
||||||
self.game = settings["name"]
|
self.game = settings["name"]
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
return [self.executable,self.fullscreen,self.gfxmode,self.game]
|
return [self.executable,self.fullscreen,self.gfxmode,self.game]
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ class scummvm(Runner):
|
||||||
if gameListStart:
|
if gameListStart:
|
||||||
if len(game) > 1:
|
if len(game) > 1:
|
||||||
dirLimit=game.index(" ")
|
dirLimit=game.index(" ")
|
||||||
else :
|
else :
|
||||||
dirLimit == None
|
dirLimit == None
|
||||||
if dirLimit != None:
|
if dirLimit != None:
|
||||||
gameDir = game[0:dirLimit]
|
gameDir = game[0:dirLimit]
|
||||||
|
@ -110,5 +110,4 @@ class scummvm(Runner):
|
||||||
if game.startswith("-----"):
|
if game.startswith("-----"):
|
||||||
gameListStart = True
|
gameListStart = True
|
||||||
return gameArray
|
return gameArray
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ class uae(Runner):
|
||||||
amiga_choices = [("Amiga 500","amiga500"),
|
amiga_choices = [("Amiga 500","amiga500"),
|
||||||
("Amiga 1200","amiga1200")]
|
("Amiga 1200","amiga1200")]
|
||||||
self.game_options = [ {"option": "disk", "type":"multiple", "label":"Floppies"}]
|
self.game_options = [ {"option": "disk", "type":"multiple", "label":"Floppies"}]
|
||||||
|
|
||||||
self.runner_options = [
|
self.runner_options = [
|
||||||
{"option": "x11.rom_path", "label": "Rom Path", "type":"directory_chooser"},
|
{"option": "x11.rom_path", "label": "Rom Path", "type":"directory_chooser"},
|
||||||
{"option": "x11.floppy_path", "label":"Floppy path", "type": "directory_chooser"},
|
{"option": "x11.floppy_path", "label":"Floppy path", "type": "directory_chooser"},
|
||||||
|
@ -111,7 +111,7 @@ class uae(Runner):
|
||||||
inserted_disks = inserted_disks +1
|
inserted_disks = inserted_disks +1
|
||||||
if inserted_disks == disks:
|
if inserted_disks == disks:
|
||||||
break
|
break
|
||||||
|
|
||||||
def get_game_options(self):
|
def get_game_options(self):
|
||||||
return {"file":self.file_options , "options":self.runner_options}
|
return {"file":self.file_options , "options":self.runner_options}
|
||||||
|
|
||||||
|
@ -122,5 +122,4 @@ class uae(Runner):
|
||||||
command.append("-s")
|
command.append("-s")
|
||||||
command.append(option+"="+self.uae_options[option])
|
command.append(option+"="+self.uae_options[option])
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ class vice(Runner):
|
||||||
self.machine = "Commodore 64"
|
self.machine = "Commodore 64"
|
||||||
|
|
||||||
self.arguments = []
|
self.arguments = []
|
||||||
|
|
||||||
self.description = "Commodore Emulator"
|
self.description = "Commodore Emulator"
|
||||||
self.game_options = [{"option":"disk","type":"single","label":"Disk File"}]
|
self.game_options = [{"option":"disk","type":"single","label":"Disk File"}]
|
||||||
self.runner_options = [{"option": "joy", "type":"bool", "label":"Use joysticks"},
|
self.runner_options = [{"option": "joy", "type":"bool", "label":"Use joysticks"},
|
||||||
|
@ -53,8 +53,7 @@ class vice(Runner):
|
||||||
|
|
||||||
self.arguments = self.arguments + ["\""+settings['game']['disk']+"\""]
|
self.arguments = self.arguments + ["\""+settings['game']['disk']+"\""]
|
||||||
|
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
command = [self.executable] + self.arguments
|
command = [self.executable] + self.arguments
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,13 @@
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
import urlparse
|
import urlparse
|
||||||
from tool.url_tool import UrlTool
|
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import hashlib
|
||||||
import logging
|
import logging
|
||||||
import lutris.constants
|
import lutris.constants
|
||||||
|
|
||||||
|
from lutris.tool.url_tool import UrlTool
|
||||||
|
|
||||||
class LutrisInterpreter():
|
class LutrisInterpreter():
|
||||||
|
|
||||||
def __init__(self, filename = None):
|
def __init__(self, filename = None):
|
||||||
|
@ -36,7 +37,7 @@ class LutrisInterpreter():
|
||||||
self.dirs = {}
|
self.dirs = {}
|
||||||
self.dirs['cache'] = lutris.constants.cache_path
|
self.dirs['cache'] = lutris.constants.cache_path
|
||||||
self.dirs['gamedir'] = '/home/strider/Jeux'
|
self.dirs['gamedir'] = '/home/strider/Jeux'
|
||||||
|
|
||||||
if filename:
|
if filename:
|
||||||
self.load(filename)
|
self.load(filename)
|
||||||
|
|
||||||
|
@ -59,7 +60,7 @@ class LutrisInterpreter():
|
||||||
self.files[file_id] = destpath
|
self.files[file_id] = destpath
|
||||||
else:
|
else:
|
||||||
print 'not a url', file_id
|
print 'not a url', file_id
|
||||||
|
|
||||||
def install(self):
|
def install(self):
|
||||||
if not 'installer' in self.config:
|
if not 'installer' in self.config:
|
||||||
return False
|
return False
|
||||||
|
@ -77,20 +78,20 @@ class LutrisInterpreter():
|
||||||
self.dirs[extract_info['newdir']] = dest
|
self.dirs[extract_info['newdir']] = dest
|
||||||
else:
|
else:
|
||||||
dest = self.dirs[extract_info['destination']]
|
dest = self.dirs[extract_info['destination']]
|
||||||
self.extract(extract_info['file'], dest)
|
self.extract(extract_info['file'], dest)
|
||||||
|
|
||||||
def check_md5(self, file_id):
|
def check_md5(self, file_id):
|
||||||
print 'checking ', self.files[file_id]
|
print 'checking ', self.files[file_id]
|
||||||
|
|
||||||
def extract(self,archive,dest,options = {}):
|
def extract(self,archive,dest,options = {}):
|
||||||
if not 'method' in options:
|
if not 'method' in options:
|
||||||
method = 'zip'
|
method = 'zip'
|
||||||
else:
|
else:
|
||||||
method = options['method']
|
method = options['method']
|
||||||
print "extracting %s to %s " % (self.files[archive], dest )
|
print "extracting %s to %s " % (self.files[archive], dest )
|
||||||
command = "unzip %s -d %s"%(self.files[archive], dest)
|
command = "unzip %s -d %s"%(self.files[archive], dest)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
def move(self,source, destination):
|
def move(self,source, destination):
|
||||||
os.move
|
os.move
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
|
||||||
### BEGIN LICENSE
|
### BEGIN LICENSE
|
||||||
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
# Copyright (C) 2010 Mathieu Comandon <strycore@gmail.com>
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
|
Loading…
Reference in a new issue