Pārlūkot izejas kodu

fix: add missing ENABLE_LOGSEQ_SYNC; rename flags

Andelf 2 gadi atpakaļ
vecāks
revīzija
b0deab5721

+ 1 - 1
.github/workflows/build-android.yml

@@ -105,7 +105,7 @@ jobs:
 
       - name: Set Build Environment Variables
         run: |
-          echo "ENABLE_FILE_SYNC_PRODUCTION=${{ inputs.enable-file-sync-production || github.event.inputs.enable-file-sync-production || inputs.build-target == '' }}" >> $GITHUB_ENV
+          echo "LOGSEQ_SYNC_ENV_PROD=${{ inputs.enable-file-sync-production || github.event.inputs.enable-file-sync-production || inputs.build-target == '' }}" >> $GITHUB_ENV
 
       - name: Compile CLJS - app variant, use es6 instead of es-next
         run: yarn install && yarn release-app

+ 2 - 2
.github/workflows/build-desktop-release.yml

@@ -126,8 +126,8 @@ jobs:
         if: ${{ github.event_name == 'workflow_dispatch' }}
         # if scheduled, use default settings
         run: |
-          echo "ENABLE_PLUGINS=${{ github.event_name == 'schedule' || github.event.inputs.enable-plugins == 'true' }}" >> $GITHUB_ENV
-          echo "ENABLE_FILE_SYNC_PRODUCTION=${{ github.event_name == 'schedule' || github.event.inputs.enable-file-sync-production == 'true' }}" >> $GITHUB_ENV
+          echo "ENABLE_LOGSEQ_PLUGINS=${{ github.event_name == 'schedule' || github.event.inputs.enable-plugins == 'true' }}" >> $GITHUB_ENV
+          echo "LOGSEQ_SYNC_ENV_PROD=${{ github.event_name == 'schedule' || github.event.inputs.enable-file-sync-production == 'true' }}" >> $GITHUB_ENV
 
       - name: Compile CLJS
         run: yarn install && gulp build && yarn cljs:release-electron

+ 1 - 1
.github/workflows/build-ios-release.yml

@@ -53,7 +53,7 @@ jobs:
 
       - name: Set Build Environment Variables
         run: |
-          echo "ENABLE_FILE_SYNC_PRODUCTION=true" >> $GITHUB_ENV
+          echo "LOGSEQ_SYNC_ENV_PROD=true" >> $GITHUB_ENV
 
       - name: Compile CLJS
         run: yarn install && yarn release-app

+ 1 - 1
.github/workflows/build-ios.yml

@@ -66,7 +66,7 @@ jobs:
 
       - name: Set Build Environment Variables
         run: |
-          echo "ENABLE_FILE_SYNC_PRODUCTION=true" >> $GITHUB_ENV
+          echo "LOGSEQ_SYNC_ENV_PROD=true" >> $GITHUB_ENV
 
       - name: Compile CLJS
         run: yarn install && yarn release-app

+ 1 - 1
scripts/build-ios.sh

@@ -3,7 +3,7 @@
 set -ex
 
 unset LOGSEQ_APP_SERVER_URL
-export ENABLE_FILE_SYNC_PRODUCTION=true
+export LOGSEQ_SYNC_ENV_PROD=true
 
 # yarn clean
 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn install --force

+ 3 - 2
shadow-cljs.edn

@@ -37,9 +37,10 @@
         :closure-defines  {goog.debug.LOGGING_ENABLED       true
                            frontend.modules.instrumentation.sentry/SENTRY-DSN #shadow/env "LOGSEQ_SENTRY_DSN"
                            frontend.modules.instrumentation.posthog/POSTHOG-TOKEN #shadow/env "LOGSEQ_POSTHOG_TOKEN"
-                           frontend.compile-config/ENABLE-PLUGINS #shadow/env ["ENABLE_PLUGINS" :as :bool :default true]
+                           frontend.compile-config/ENABLE-FILE-SYNC-FEATURE #shadow/env ["ENABLE_LOGSEQ_SYNC" :as :bool :default true]
+                           frontend.compile-config/ENABLE-PLUGINS #shadow/env ["ENABLE_LOGSEQ_PLUGINS" :as :bool :default true]
                            ;; Set to switch file sync server to dev, set this to false in `yarn watch`
-                           frontend.compile-config/ENABLE-FILE-SYNC-PRODUCTION #shadow/env ["ENABLE_FILE_SYNC_PRODUCTION" :as :bool :default true]
+                           frontend.compile-config/ENABLE-FILE-SYNC-PRODUCTION #shadow/env ["LOGSEQ_SYNC_ENV_PROD" :as :bool :default true]
                            frontend.compile-config/TEST #shadow/env ["LOGSEQ_CI" :as :bool :default false]
                            frontend.compile-config/REVISION #shadow/env ["LOGSEQ_REVISION" :default "dev"]} ;; set by git-revision-hook