Project

General

Profile

« Previous | Next » 

Revision 81910556

Added by jahoti almost 2 years ago

  • ID 81910556643b5878b001ed443aebf719d5bf99b9
  • Parent fbf0503f

Add build support for update URLs

The 'url' parameter can now be used to provide an update URL

View differences:

lib_build.sh
185 185
    done
186 186

  
187 187
    CHROMIUM_KEY=''
188
    CHROMIUM_UPDATE_URL=''
188 189
    GECKO_APPLICATIONS=''
190
    
191
    if [ "x$UPDATE_URL" != x ]; then
192
	UPDATE_URL=",\n    \"update_url\": \"$UPDATE_URL\""
193
    fi
189 194

  
190 195
    if [ "$BROWSER" = "chromium" ]; then
191 196
	CHROMIUM_KEY="$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64)"
192 197
	CHROMIUM_KEY=$(echo chromium-key-dummy-file-$CHROMIUM_KEY | tr / -)
193 198
	touch $BUILDDIR/$CHROMIUM_KEY
194 199

  
200
	CHROMIUM_UPDATE_URL="$UPDATE_URL"
201

  
195 202
	CHROMIUM_KEY="\n\
196 203
	// WARNING!!!\n\
197 204
	// EACH USER SHOULD REPLACE DUMMY FILE's VALUE WITH A UNIQUE ONE!!!\n\
......
205 212
    \"applications\": {\n\
206 213
	\"gecko\": {\n\
207 214
	    \"id\": \"{6fe13369-88e9-440f-b837-5012fb3bedec}\",\n\
208
	    \"strict_min_version\": \"60.0\"\n\
215
	    \"strict_min_version\": \"60.0\"$UPDATE_URL\n\
209 216
	}\n\
210 217
    },"
211 218
    fi
......
213 220
    sed "\
214 221
s^_GECKO_APPLICATIONS_^$GECKO_APPLICATIONS^
215 222
s^_CHROMIUM_KEY_^$CHROMIUM_KEY^
223
s^_CHROMIUM_UPDATE_URL_^$CHROMIUM_UPDATE_URL^
216 224
s^_BGSCRIPTS_^$BGSCRIPTS^
217 225
s^_CONTENTSCRIPTS_^$CONTENTSCRIPTS^" \
218 226
	< manifest.json > $BUILDDIR/manifest.json

Also available in: Unified diff