Skip to content

Commit e2d3845

Browse files
committed
Fix Mac OS binary
1 parent 8a56bc7 commit e2d3845

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
name: sqlite-sources
7979
path: src
8080
- name: Compile sources
81-
run: bin/compile-mac.sh
81+
run: bin/compile-macos.sh
8282
- name: Upload binaries to release
8383
uses: svenstaro/upload-release-action@v2
8484
with:

bin/compile-linux.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ gcc \
2828
-DSQLITE_INTROSPECTION_PRAGMAS=1 \
2929
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 \
3030
-DSQLITE_OMIT_DEPRECATED=1 \
31-
-DSQLITE_THREADSAFE=1 \
31+
-DSQLITE_THREADSAFE=0 \
3232
-DSQLITE_USE_URI=1 \
3333
src/shell.c src/sqlite3.c -o dist/sqlite3-ubuntu \
3434
-ldl -lz -lm -lreadline -lncurses
35-
chmod +x dist/sqlite3-ubuntu
35+
chmod +x dist/sqlite3-ubuntu
36+
ls -la dist/

bin/compile-mac.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ gcc \
2828
-DSQLITE_INTROSPECTION_PRAGMAS=1 \
2929
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 \
3030
-DSQLITE_OMIT_DEPRECATED=1 \
31-
-DSQLITE_THREADSAFE=1 \
31+
-DSQLITE_THREADSAFE=0 \
3232
-DSQLITE_USE_URI=1 \
33-
src/shell.c src/sqlite3.c -o dist/sqlite3-mac \
33+
src/shell.c src/sqlite3.c -o dist/sqlite3-macos \
3434
-ldl -lz -lm -lreadline -lncurses
35-
chmod +x dist/sqlite3-mac
35+
chmod +x dist/sqlite3-macos
36+
ls -la dist/

bin/compile-windows.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ gcc \
2828
-DSQLITE_INTROSPECTION_PRAGMAS=1 \
2929
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 \
3030
-DSQLITE_OMIT_DEPRECATED=1 \
31-
-DSQLITE_THREADSAFE=1 \
31+
-DSQLITE_THREADSAFE=0 \
3232
-DSQLITE_USE_URI=1 \
3333
-I. src/shell.c src/sqlite3.c -o dist/sqlite3.exe

gen/genBins.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ class Generator extends GenBase {
6767
genMac() {
6868
let path = "bin/compile-mac.sh";
6969
this.lines = [];
70-
this.macContent();
70+
this.macosContent();
7171
fs.writeFileSync(path, this.content, "utf-8");
7272
fs.chmodSync(path, 0o755);
7373
}
7474

75-
macContent() {
75+
macosContent() {
7676
this.push("#!/usr/bin/env bash");
7777
this.push("mkdir dist");
7878
this.push("gcc \\");
@@ -81,11 +81,11 @@ class Generator extends GenBase {
8181
this.push(`-${flag} \\`);
8282
});
8383

84-
this.push("src/shell.c src/sqlite3.c -o dist/sqlite3-mac \\");
84+
this.push("src/shell.c src/sqlite3.c -o dist/sqlite3-macos \\");
8585
this.push("-ldl -lz -lm -lreadline -lncurses");
8686
});
8787

88-
this.push(`chmod +x dist/sqlite3-mac`);
88+
this.push(`chmod +x dist/sqlite3-macos`);
8989
this.push("ls -la dist/");
9090
}
9191

0 commit comments

Comments
 (0)