File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ fn write_plist() {
8383fn main ( ) {
8484 println ! ( "cargo:rerun-if-changed=def.json" ) ;
8585
86+ // Download feed.json if FETCH_FEED environment variable is set
87+ if std:: env:: var ( "FETCH_FEED" ) . is_ok ( ) {
88+ download_feed_json ( ) ;
89+ }
90+
8691 #[ cfg( target_os = "macos" ) ]
8792 write_plist ( ) ;
8893
@@ -326,9 +331,12 @@ fn main() {
326331/// Downloads the latest feed.json from the autocomplete repository.
327332/// This ensures official builds have the most up-to-date changelog information.
328333///
329- /// TODO - temporarily disabled since GitHub API seems to be very strict with rate limiting,
330- /// causing builds to fail.
331- #[ allow( dead_code) ]
334+ /// # Errors
335+ ///
336+ /// Prints cargo warnings if:
337+ /// - `curl` command is not available
338+ /// - Network request fails
339+ /// - File write operation fails
332340fn download_feed_json ( ) {
333341 use std:: process:: Command ;
334342
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def build_chat_bin(
8787 env = {
8888 ** os .environ ,
8989 ** rust_env (release = release ),
90+ "FETCH_FEED" : "1" , # Always fetch latest feed.json for official builds
9091 },
9192 )
9293
You can’t perform that action at this time.
0 commit comments