Skip to content

ALIF101XL/Universal-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Converter by @ALIF101XL

Build AppImage :

sudo apt install -y appimagetool
sudo ./build-AppImage.sh
chmod +x Universal-Converter-x86_64.AppImage
./Universal-Converter-x86_64.AppImage

Contoh Build AppImage :

#!/usr/bin/env bash
set -e

APP=Universal-Converter
VERSION=1.0
APPDIR="$APP.AppDir"

echo "📦 Building $APP AppImage..."

# Cleanup old
rm -rf "$APPDIR"
mkdir -p "$APPDIR/usr/bin"

# Copy main script
cp universal.sh "$APPDIR/usr/bin/universal"
chmod +x "$APPDIR/usr/bin/universal"

# AppRun file
cat > "$APPDIR/AppRun" << 'EOF'
#!/bin/bash
HERE="$(dirname "$(readlink -f "$0")")"
export PATH="$HERE/usr/bin:$PATH"
exec universal "$@"
EOF

chmod +x "$APPDIR/AppRun"

# Desktop entry
cat > "$APPDIR/$APP.desktop" << EOF
[Desktop Entry]
Name=$APP
Exec=universal
Icon=universal
Terminal=true
Type=Application
Categories=Utility;
EOF

# Create simple icon
cat > "$APPDIR/universal.png" << 'EOF'
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==
EOF
base64 -d "$APPDIR/universal.png" > "$APPDIR/icon.png"
mv "$APPDIR/icon.png" "$APPDIR/universal.png"

# Check appimagetool
if ! command -v appimagetool &>/dev/null; then
echo "⚠️  appimagetool not found."
echo "➡️  Install it:"
echo "wget https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage"
echo "chmod +x appimagetool-x86_64.AppImage"
echo "./appimagetool-x86_64.AppImage $APPDIR"
exit 0
fi

# Build AppImage
echo "🚀 Building AppImage..."
appimagetool "$APPDIR" "${APP}-${VERSION}.AppImage"

echo "✅ Done!"
ls -lh "${APP}-${VERSION}.AppImage"


Install & Run :

chmod +x universal.sh
./universal.sh file.pdf
./universal.sh

sudo apt install -y pandoc ffmpeg imagemagick libreoffice poppler-utils tidy python3 python3-pip

pip install pandas xmltodict

Mode Type :


  1. Script 1 .pdf to .md .pdf to .txt

  2. Script 2 .md to .pdf .md to .txt

  3. Script 3 .txt to .pdf .txt to .md

  4. Script 4 .xlsx to .json .json to .xlsx

  5. Script 5 .xml to .json .json to .xml

  6. Script 6 .xml to .html .html to .xml

  7. Script 7 .php to .html .html to .php

  8. Script 8 .pdf to .docx .docx to .pdf

  9. Script 9 .png to .jpg .jpg to .png

  10. Script 10 .png to .ico .ico to .png

  11. Script 11 .mkv to .mp4 .mp4 to .mkv

  12. Script 12 .sh to .py .py to .sh

  13. Script 13 .pl to .rb .rb to .pl

  14. Script 14 .pl to .py .py to .pl

  15. Script 15 .html to .md .md to .html

  16. Script 16 .md to .php .php to .md

  17. Script 17 .txt to .html .html to .txt

  18. Script 18 .js to .py .py to .js

  19. Script 19 .php to .js .js to .php


About

Universal-Converter

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages