Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions extract-resources@RutarAndriy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v1.0

- Initial release
10 changes: 10 additions & 0 deletions extract-resources@RutarAndriy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Extract resources

Extracting resources from `*.exe` and `*.dll` files.

## Dependencies

The following packages must be installed:

* `icoutils` for running `wrestool` command
* `notify-send` for show an information message
8 changes: 8 additions & 0 deletions extract-resources@RutarAndriy/[email protected]_action.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Nemo Action]
_Name=Extract resources
_Comment=Extracting resources from %f
Exec=<extract-resources@RutarAndriy/extract-resources.sh %P %f>
Icon-Name=goa-account-msn-symbolic
Selection=s
Extensions=exe;dll;
Dependencies=wrestool;notify-send;
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Задаємо необхідні глобальні змінні
TEXTDOMAINDIR=$HOME/.local/share/locale/
TEXTDOMAIN=extract-resources@RutarAndriy

_TITLE=$"Extracting resources"
TITLE="$(/usr/bin/gettext "$_TITLE")"
_MESSAGE=$"Resources successfully extracted to $2_res/ folder"
MESSAGE="$(/usr/bin/gettext "$_MESSAGE")"

# Створюємо нову директорію
mkdir "$1/$2_res"

# Видобуваємо зображення
wrestool -x --output="$1/$2_res" --raw --type=3 "$1/$2"

# Видобуваємо курсори
wrestool -x --output="$1/$2_res" --type=12 "$1/$2"

# Видобуваємо іконки
wrestool -x --output="$1/$2_res" --type=14 "$1/$2"

# Відображаємо інформаційне повідомлення
notify-send "$TITLE" "$MESSAGE"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "Extracting resources from *.exe and *.dll files",
"uuid": "extract-resources@RutarAndriy",
"name": "Extract resources",
"author": "RutarAndriy",
"version": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# EXTRACT RESOURCES
# This file is put in the public domain.
# RutarAndriy, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: extract-resources@RutarAndriy 1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2025-03-05 10:52+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#. metadata.json->description
msgid "Extracting resources from *.exe and *.dll files"
msgstr ""

#. metadata.json->name
#. [email protected]_action.in->Name
msgid "Extract resources"
msgstr ""

#. extract-resources.sh:7
msgid "Extracting resources"
msgstr ""

#. extract-resources.sh:9
msgid "Resources successfully extracted to $2_res/ folder"
msgstr ""

#. [email protected]_action.in->Comment
msgid "Extracting resources from %f"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# EXTRACT RESOURCES
# This file is put in the public domain.
# RutarAndriy, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: extract-resources@RutarAndriy 1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2025-03-05 10:52+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#. metadata.json->description
msgid "Extracting resources from *.exe and *.dll files"
msgstr "Видобування ресурсів з *.exe та *.dll файлів"

#. metadata.json->name
#. [email protected]_action.in->Name
msgid "Extract resources"
msgstr "Видобування ресурсів"

#. extract-resources.sh:7
msgid "Extracting resources"
msgstr "Видобування ресурсів"

#. extract-resources.sh:9
msgid "Resources successfully extracted to $2_res/ folder"
msgstr "Ресурси успішно видобуто в папку $2_res/"

#. [email protected]_action.in->Comment
msgid "Extracting resources from %f"
msgstr "Видобування ресурсів з %f"
3 changes: 3 additions & 0 deletions extract-resources@RutarAndriy/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "RutarAndriy"
}