Skip to content

Commit

Permalink
Publish release for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Serrano Polo committed Dec 30, 2017
1 parent 9b79f2e commit dbc0acd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ signatures and filtering by certificate authority.
How-to
------
This is still work in progress. The Firefox extension is usable on Linux, but it
depends on a native back end which needs deployment. You can compile the
depends on a native back end which needs deployment. You can download the
installer at the [releases](https://github.com/jasp00/signTextJS/releases) page;
run it as root for system-wide availability. Alternatively, you can compile the
application and
[set up](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_manifests#Manifest_location)
the environment.
Expand Down
3 changes: 1 addition & 2 deletions installer/linux/build-installer
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ rm -fr installer.root
mkdir installer.root
cd installer.root

cp -a "$TOPDIR"/src/linux/signtextjs_plus \
"$TOPDIR"/src/linux/signtextjs_plus.json \
cp -a "$TOPDIR"/src/linux/signtextjs_plus "$TOPDIR"/src/signtextjs_plus.json \
"$TOPDIR"/installer/linux/installer .

strip signtextjs_plus
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
signtextjs_plus: signtextjs_plus.cpp config.h
signtextjs_plus: ../signtextjs_plus.cpp ../config.h
g++ -Wall -O2 -g -I/usr/include/jsoncpp -I/usr/include/nspr -o $@ $< \
-ljsoncpp -lnspr4 -lnss3 -lsmime3

config.h: ../../webextension/manifest.json
./gen-config < $< > $@
../config.h: ../../webextension/manifest.json
../gen-config < $< > $@
6 changes: 6 additions & 0 deletions src/linux/signtextjs_plus.cpp → src/signtextjs_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,13 @@ static char *detect_configdir(void) {
const char *envvar = getenv("MOZ_CRASHREPORTER_EVENTS_DIRECTORY");
if (!envvar)
return NULL;

#ifdef __MINGW32__
static const char SUBDIRS[] = "\\crashes\\events";
#else
static const char SUBDIRS[] = "/crashes/events";
#endif

const char *end = strstr(envvar, SUBDIRS);
if (!end)
return NULL;
Expand Down
File renamed without changes.

0 comments on commit dbc0acd

Please sign in to comment.