Forráskód Böngészése

Add a script to turn the repo to "production" mode

jherve 1 éve
szülő
commit
0a7e89ea67
2 módosított fájl, 29 hozzáadás és 0 törlés
  1. 26 0
      make_prod.patch
  2. 3 0
      make_prod.sh

+ 26 - 0
make_prod.patch

@@ -0,0 +1,26 @@
+diff --git a/native/install.sh b/native/install.sh
+index f3c3aca..e365fca 100755
+--- a/native/install.sh
++++ b/native/install.sh
+@@ -6,7 +6,7 @@
+ 
+ set -eu
+ 
+-EXTENSION_NAME="job_search_background"
++EXTENSION_NAME="job_search_background.prod"
+ EXTENSION_BACKEND_PATH=$(realpath $0 | xargs dirname)
+ EXTENSION_BIN=${EXTENSION_BACKEND_PATH}/run.sh
+ 
+diff --git a/src/Background.purs b/src/Background.purs
+index 885ac8e..a742a65 100644
+--- a/src/Background.purs
++++ b/src/Background.purs
+@@ -24,7 +24,7 @@ import LinkedIn.Output.Types (Output(..))
+ main :: Effect Unit
+ main = do
+   log "[bg] starting up"
+-  port <- connectToNativeApplication "job_search_background"
++  port <- connectToNativeApplication "job_search_background.prod"
+   onNativeMessageAddListener port nativeMessageHandler
+   onNativeDisconnectAddListener port \p -> log $ "disconnected from native port " <> p.name <> " (" <> p.error <> ")"
+ 

+ 3 - 0
make_prod.sh

@@ -0,0 +1,3 @@
+#!/bin/sh
+
+git apply ./make_prod.patch