Skip to content

Commit

Permalink
Esqueleto base para generar un AppImage de firma electrónica
Browse files Browse the repository at this point in the history
  • Loading branch information
alfem committed May 28, 2019
1 parent 90fd1c5 commit b058e7c
Show file tree
Hide file tree
Showing 16 changed files with 6,238 additions and 0 deletions.
1 change: 1 addition & 0 deletions Firefox.AppDir/.DirIcon
Binary file added Firefox.AppDir/AppRun
Binary file not shown.
9 changes: 9 additions & 0 deletions Firefox.AppDir/firefox.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Firefox
Icon=firefox
Exec=firefox-launcher %u
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
X-AppImage-Version=67.0.glibc2.4
5,016 changes: 5,016 additions & 0 deletions Firefox.AppDir/ssl/certs/ca-certificates.crt

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Firefox.AppDir/usr/bin/AutoFirma
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

HERE="$(dirname "$(readlink -f "${0}")")"
export NSS_PATH="$HERE"
#export USE_ENV_VARS=true
export AFIRMA_NSS_HOME_ENV="$APPDIR"/usr/bin/
export AFIRMA_NSS_PROFILES_INI="$HOME"/firefirma/profiles.ini
java -jar -Des.gob.afirma.keystores.mozilla.UseEnvironmentVariables=true $APPDIR/usr/lib/AutoFirma/AutoFirma.jar $*
23 changes: 23 additions & 0 deletions Firefox.AppDir/usr/bin/application.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
; This file is not used. If you modify it and want the application to use
; your modifications, move it under the browser/ subdirectory and start with
; the "-app /path/to/browser/application.ini" argument.
[App]
Vendor=Mozilla
Name=Firefox
RemotingName=firefox
Version=67.0
BuildID=20190516215225
SourceRepository=https://hg.mozilla.org/releases/mozilla-release
SourceStamp=2a7896ba9aa5d982abe01f859d771d411fda8101
ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}

[Gecko]
MinVersion=67.0
MaxVersion=67.0

[XRE]
EnableProfileMigrator=1

[Crash Reporter]
Enabled=1
ServerURL=https://crash-reports.mozilla.com/submit?id={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&version=67.0&buildid=20190516215225
4 changes: 4 additions & 0 deletions Firefox.AppDir/usr/bin/defaults/pref/00_admin-prefs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Any comment. You must start the file with a single-line comment!
// https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment_before_60
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
24 changes: 24 additions & 0 deletions Firefox.AppDir/usr/bin/firefox-launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

#Creamos un perfil nuevo de Firefox

if [[ ! -e $HOME/firefirma/profile ]]; then
mkdir -p $HOME/firefirma/profile
cat << EOF >$HOME/firefirma/profiles.ini
[General]
StartWithLastProfile=1
[Profile0]
Name=Perfil para Firma Electrónica
IsRelative=0
Path=$HOME/firefirma/profile
EOF
fi

HERE="$(dirname "$(readlink -f "${0}")")"
export PATH="${HERE}"/usr/bin/:"${HERE}"/usr/sbin/::"${HERE}"/bin/:"${HERE}"/sbin/:"${PATH}"
export LD_LIBRARY_PATH="${HERE}"/usr/lib/:"${HERE}"/usr/lib/i386-linux-gnu/:"${HERE}"/usr/lib/x86_64-linux-gnu/:"${HERE}"/usr/lib32/:"${HERE}"/usr/lib64/:"${HERE}"/lib/:"${HERE}"/lib/i386-linux-gnu/:"${HERE}"/lib/x86_64-linux-gnu/:"${HERE}"/lib32/:"${HERE}"/lib64/:"${LD_LIBRARY_PATH}"
export XDG_DATA_DIRS="${HERE}"/usr/share/:"${XDG_DATA_DIRS}"
export GSETTINGS_SCHEMA_DIR="${HERE}"/usr/share/glib-2.0/schemas/:"${GSETTINGS_SCHEMA_DIR}"
exec $HERE/firefox --no-remote --new-window --profile $HOME/firefirma/profile "$@" file://$APPDIR/web/index.html

1 change: 1 addition & 0 deletions Firefox.AppDir/usr/bin/java
57 changes: 57 additions & 0 deletions Firefox.AppDir/usr/bin/mozilla.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Any comment. You must start the file with a comment!
// https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment_before_60

// Disable updater
lockPref("app.update.enabled", false);
// make absolutely sure it is really off
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);
lockPref("app.update.doorhanger", false);
lockPref("app.update.download.promptMaxAttempts", 0);
lockPref("app.update.elevation.promptMaxAttempts", 0);
lockPref("app.update.url", "");

// Disable Add-ons compatibility checking
clearPref("extensions.lastAppVersion");

// Don't show 'know your rights' on first run
pref("browser.rights.3.shown", true);
// Don't show WhatsNew on first run after every update
pref("browser.startup.homepage_override.mstone","ignore");

// Set default homepage - users can change
// Requires a complex preference
defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=https://valide.redsara.es");

//Disable plugin checking
lockPref("plugins.hide_infobar_for_outdated_plugin", true);
clearPref("plugins.update.url");

// Disable health reporter
lockPref("datareporting.healthreport.service.enabled", false);

// Disable all data upload (Telemetry and FHR)
lockPref("datareporting.policy.dataSubmissionEnabled", false);

// Disable crash reporter
lockPref("toolkit.crashreporter.enabled", false);

// Other
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.laterrun.enabled", false);
pref("browser.onboarding.enabled", false);
pref("browser.onboarding.notification.finished", true);
pref("browser.startup.firstrunSkipsHomepage", false);
pref("datareporting.healthreport.uploadEnabled", false);
pref("privacy.donottrackheader.enabled", true);
pref("privacy.resistFingerprinting", true);
pref("toolkit.telemetry.newProfilePing.enabled", false);
pref("toolkit.telemetry.updatePing.enabled", false);
pref("toolkit.telemetry.enabled", false);
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);

// Disable web notifications nagging
pref("dom.webnotifications.enabled", false);
Binary file added Firefox.AppDir/usr/lib/AutoFirma/autofirma.pfx
Binary file not shown.
13 changes: 13 additions & 0 deletions Firefox.AppDir/usr/share/applications/afirma.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
Encoding=UTF-8
Name=AutoFirma
Comment=Cliente @firma
Exec=AutoFirma %u
Icon=/usr/lib/AutoFirma/AutoFirma.png
MimeType=x-scheme-handler/afirma;
Terminal=false
Type=Application
Categories=GNOME;Application;Office
StartupNotify=true
StartupWMClass=autofirma
Name[es_ES]=AutoFirma
244 changes: 244 additions & 0 deletions Firefox.AppDir/usr/share/applications/defaults.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
[Default Applications]
application/csv=libreoffice-calc.desktop
application/excel=libreoffice-calc.desktop
application/msexcel=libreoffice-calc.desktop
application/msword=libreoffice-writer.desktop
application/ogg=xplayer.desktop;totem.desktop
application/pdf=xreader.desktop;evince.desktop;atril.desktop
application/postscript=xreader.desktop;evince.desktop;atril.desktop
application/rtf=libreoffice-writer.desktop
application/tab-separated-values=libreoffice-calc.desktop
application/vnd.lotus-1-2-3=libreoffice-calc.desktop
application/vnd.ms-excel=libreoffice-calc.desktop
application/vnd.ms-word=libreoffice-writer.desktop
application/vnd.rn-realmedia=xplayer.desktop;totem.desktop
application/vnd.sun.xml.calc=libreoffice-calc.desktop
application/vnd.sun.xml.calc.template=libreoffice-calc.desktop
application/vnd.sun.xml.draw=libreoffice-draw.desktop
application/vnd.sun.xml.draw.template=libreoffice-draw.desktop
application/vnd.sun.xml.math=libreoffice-math.desktop
application/vnd.sun.xml.writer=libreoffice-writer.desktop
application/vnd.sun.xml.writer.template=libreoffice-writer.desktop
application/vnd.sun.xml.writer.global=libreoffice-writer.desktop
application/vnd.oasis.opendocument.formula=libreoffice-math.desktop
application/vnd.oasis.opendocument.graphics=libreoffice-draw.desktop
application/vnd.oasis.opendocument.graphics-template=libreoffice-draw.desktop
application/vnd.oasis.opendocument.presentation=libreoffice-impress.desktop
application/vnd.oasis.opendocument.presentation-template=libreoffice-impress.desktop
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
application/vnd.oasis.opendocument.spreadsheet-template=libreoffice-calc.desktop
application/vnd.oasis.opendocument.text=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-template=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-web=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-master=libreoffice-writer.desktop
application/vnd.sun.xml.impress=libreoffice-impress.desktop
application/vnd.sun.xml.impress.template=libreoffice-impress.desktop
application/vnd.stardivision.calc=libreoffice-calc.desktop
application/vnd.stardivision.draw=libreoffice-draw.desktop
application/vnd.stardivision.impress=libreoffice-impress.desktop
application/vnd.stardivision.math=libreoffice-math.desktop
application/vnd.stardivision.writer=libreoffice-writer.desktop
application/mspowerpoint=libreoffice-impress.desktop
application/vnd.ms-powerpoint=libreoffice-impress.desktop
application/vnd.wordperfect=libreoffice-writer.desktop
application/wordperfect=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.template=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.template=libreoffice-calc.desktop
application/vnd.openxmlformats-officedocument.presentationml.slide=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.slideshow=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.presentation=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.template=libreoffice-impress.desktop
application/x-123=libreoffice-calc.desktop
application/x-abiword=abiword.desktop
application/x-applix-spreadsheet=libreoffice-calc.desktop
application/x-ar=file-roller.desktop;engrampa.desktop
application/x-arj=file-roller.desktop;engrampa.desktop
application/x-bzip-compressed-tar=file-roller.desktop;engrampa.desktop
application/x-bzip=file-roller.desktop;engrampa.desktop
application/x-cbr=xreader.desktop;evince.desktop;atril.desktop
application/x-cbz=xreader.desktop;evince.desktop;atril.desktop
application/x-compressed-tar=file-roller.desktop;engrampa.desktop
application/x-compress=file-roller.desktop;engrampa.desktop
application/x-deb=gdebi.desktop
application/x-debian-package=gdebi.desktop
application/x-dos_ms_excel=libreoffice-calc.desktop
application/x-ear=file-roller.desktop;engrampa.desktop
application/x-excel=libreoffice-calc.desktop
application/x-extension-m4a=xplayer.desktop;totem.desktop
application/x-extension-mp4=xplayer.desktop;totem.desktop
application/x-flac=xplayer.desktop;totem.desktop
application/x-glade=glade-3.desktop
application/x-gnumeric=gnumeric.desktop
application/x-gtar=file-roller.desktop;engrampa.desktop
application/x-gzip=file-roller.desktop;engrampa.desktop
application/x-gzpostscript=xreader.desktop;evince.desktop;atril.desktop
application/xhtml+xml=firefox.desktop
application/x-jar=file-roller.desktop;engrampa.desktop
application/x-java-archive=file-roller.desktop;engrampa.desktop
application/x-java-jnlp-file=icedtea-netx-javaws.desktop
application/x-lha=file-roller.desktop;engrampa.desktop
application/x-lhz=file-roller.desktop;engrampa.desktop
application/xls=libreoffice-calc.desktop
application/x-lzop=file-roller.desktop;engrampa.desktop
application/x-matroska=xplayer.desktop;totem.desktop
application/x-mps=libreoffice-calc.desktop
application/x-ms-excel=libreoffice-calc.desktop
application/x-msexcel=libreoffice-calc.desktop
application/x-ogg=xplayer.desktop;totem.desktop
application/x-oleo=libreoffice-calc.desktop
application/x-perl=xed.desktop;gedit.desktop;pluma.desktop
application/x-planperfect=libreoffice-calc.desktop
application/x-quattropro=libreoffice-calc.desktop
application/x-rar-compressed=file-roller.desktop;engrampa.desktop
application/x-rar=file-roller.desktop;engrampa.desktop
application/x-rpm=file-roller.desktop;engrampa.desktop
application/x-sc=libreoffice-calc.desktop
application/x-shockwave-flash=xplayer.desktop;totem.desktop
application/x-sylk=libreoffice-calc.desktop
application/x-tar=file-roller.desktop;engrampa.desktop
application/x-war=file-roller.desktop;engrampa.desktop
application/x-xbase=libreoffice-calc.desktop
application/x-xls=libreoffice-calc.desktop
application/x-zip-compressed=file-roller.desktop;engrampa.desktop
application/x-zip=file-roller.desktop;engrampa.desktop
application/x-zoo=file-roller.desktop;engrampa.desktop
application/zip=file-roller.desktop;engrampa.desktop
audio/3gpp=xplayer.desktop;totem.desktop
audio/ac3=xplayer.desktop;totem.desktop
audio/AMR=xplayer.desktop;totem.desktop
audio/AMR-WB=xplayer.desktop;totem.desktop
audio/basic=xplayer.desktop;totem.desktop
audio/flac=xplayer.desktop;totem.desktop
audio/midi=xplayer.desktop;totem.desktop
audio/mp4=xplayer.desktop;totem.desktop
audio/mpeg=xplayer.desktop;totem.desktop
audio/mpegurl=xplayer.desktop;totem.desktop
audio/ogg=xplayer.desktop;totem.desktop
audio/prs.sid=xplayer.desktop;totem.desktop
audio/vnd.rn-realaudio=xplayer.desktop;totem.desktop
audio/x-ape=xplayer.desktop;totem.desktop
audio/x-flac=xplayer.desktop;totem.desktop
audio/x-gsm=xplayer.desktop;totem.desktop
audio/x-it=xplayer.desktop;totem.desktop
audio/x-m4a=xplayer.desktop;totem.desktop
audio/x-matroska=xplayer.desktop;totem.desktop
audio/x-mod=xplayer.desktop;totem.desktop
audio/x-mp3=xplayer.desktop;totem.desktop
audio/x-mpeg=xplayer.desktop;totem.desktop
audio/x-mpegurl=xplayer.desktop;totem.desktop
audio/x-ms-asf=xplayer.desktop;totem.desktop
audio/x-ms-asx=xplayer.desktop;totem.desktop
audio/x-ms-wax=xplayer.desktop;totem.desktop
audio/x-ms-wma=xplayer.desktop;totem.desktop
audio/x-musepack=xplayer.desktop;totem.desktop
audio/x-pn-aiff=xplayer.desktop;totem.desktop
audio/x-pn-au=xplayer.desktop;totem.desktop
audio/x-pn-realaudio=xplayer.desktop;totem.desktop
audio/x-pn-realaudio-plugin=xplayer.desktop;totem.desktop
audio/x-pn-wav=xplayer.desktop;totem.desktop
audio/x-pn-windows-acm=xplayer.desktop;totem.desktop
audio/x-realaudio=xplayer.desktop;totem.desktop
audio/x-real-audio=xplayer.desktop;totem.desktop
audio/x-sbc=xplayer.desktop;totem.desktop
audio/x-scpls=xplayer.desktop;totem.desktop
audio/x-speex=xplayer.desktop;totem.desktop
audio/x-tta=xplayer.desktop;totem.desktop
audio/x-wav=xplayer.desktop;totem.desktop
audio/x-wavpack=xplayer.desktop;totem.desktop
audio/x-vorbis=xplayer.desktop;totem.desktop
audio/x-vorbis+ogg=xplayer.desktop;totem.desktop
audio/x-xm=xplayer.desktop;totem.desktop
image/bmp=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/gif=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/jpeg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/jpg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/pjpeg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/png=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/svg+xml=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/tiff=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/vnd.rn-realpix=xplayer.desktop;totem.desktop
image/x-bmp=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-gray=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-icb=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-ico=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-png=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-anymap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-bitmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-graymap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-pixmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-psd=gimp.desktop
image/x-xbitmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-xpixmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
inode/directory=nemo.desktop;caja.desktop;nautilus.desktop;Thunar.desktop;kde4-dolphin.desktop
misc/ultravox=xplayer.desktop;totem.desktop
multipart/x-zip=file-roller.desktop;engrampa.desktop
text/abiword=abiword.desktop
text/calendar=evolution.desktop
text/comma-separated-values=libreoffice-calc.desktop
text/csv=libreoffice-calc.desktop
text/html=firefox.desktop
text/plain=xed.desktop;gedit.desktop;pluma.desktop
text/richtext=abiword.desktop
text/rtf=libreoffice-writer.desktop
text/spreadsheet=libreoffice-calc.desktop
text/tab-separated-values=libreoffice-calc.desktop
text/x-comma-separated-values=libreoffice-calc.desktop
text/x-chdr=xed.desktop;gedit.desktop;pluma.desktop
text/x-csrc=xed.desktop;gedit.desktop;pluma.desktop
text/x-dtd=xed.desktop;gedit.desktop;pluma.desktop
text/x-java=xed.desktop;gedit.desktop;pluma.desktop
text/mathml=xed.desktop;gedit.desktop;pluma.desktop
text/x-python=xed.desktop;gedit.desktop;pluma.desktop
text/x-sql=xed.desktop;gedit.desktop;pluma.desktop
text/xml=xed.desktop;gedit.desktop;pluma.desktop;firefox.desktop
video/3gpp=xplayer.desktop;totem.desktop
video/dv=xplayer.desktop;totem.desktop
video/fli=xplayer.desktop;totem.desktop
video/flv=xplayer.desktop;totem.desktop
video/mp2t=xplayer.desktop;totem.desktop
video/mp4=xplayer.desktop;totem.desktop
video/mp4v-es=xplayer.desktop;totem.desktop
video/mpeg=xplayer.desktop;totem.desktop
video/msvideo=xplayer.desktop;totem.desktop
video/ogg=xplayer.desktop;totem.desktop
video/quicktime=xplayer.desktop;totem.desktop
video/vivo=xplayer.desktop;totem.desktop
video/vnd.divx=xplayer.desktop;totem.desktop
video/vnd.rn-realvideo=xplayer.desktop;totem.desktop
video/vnd.vivo=xplayer.desktop;totem.desktop
video/webm=xplayer.desktop;totem.desktop
video/x-anim=xplayer.desktop;totem.desktop
video/x-avi=xplayer.desktop;totem.desktop
video/x-flc=xplayer.desktop;totem.desktop
video/x-fli=xplayer.desktop;totem.desktop
video/x-flic=xplayer.desktop;totem.desktop
video/x-flv=xplayer.desktop;totem.desktop
video/x-m4v=xplayer.desktop;totem.desktop
video/x-matroska=xplayer.desktop;totem.desktop
video/x-mpeg=xplayer.desktop;totem.desktop
video/x-ms-asf=xplayer.desktop;totem.desktop
video/x-ms-asx=xplayer.desktop;totem.desktop
video/x-msvideo=xplayer.desktop;totem.desktop
video/x-ms-wm=xplayer.desktop;totem.desktop
video/x-ms-wmv=xplayer.desktop;totem.desktop
video/x-ms-wmx=xplayer.desktop;totem.desktop
video/x-ms-wvx=xplayer.desktop;totem.desktop
video/x-nsv=xplayer.desktop;totem.desktop
video/x-ogm+ogg=xplayer.desktop;totem.desktop
video/x-theora+ogg=xplayer.desktop;totem.desktop
video/x-totem-stream=xplayer.desktop;totem.desktop
x-content/video-dvd=xplayer.desktop;totem.desktop
x-content/video-vcd=xplayer.desktop;totem.desktop
x-content/video-svcd=xplayer.desktop;totem.desktop
x-content/audio-cdda=banshee-audiocd.desktop
x-content/audio-dvd=banshee-audiocd.desktop
x-content/audio-player=banshee-audiocd.desktop
x-content/image-dcf=shotwell.desktop
x-content/image-picturecd=shotwell.desktop
zz-application/zz-winassoc-xls=libreoffice-calc.desktop
x-scheme-handler/apt=apturl_mime.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/mailto=thunderbird.desktop
Loading

0 comments on commit b058e7c

Please sign in to comment.