Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Labfox committed Aug 25, 2024
1 parent 9b290b7 commit 931aa3a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
env:
CGO_ENABLED: 1
run: |
cd whatsfly/dependencies/whatsmeow
cd whatsfly/dependencies
GOOS=darwin GOARCH=amd64 go build -v -buildmode=c-shared -o ./whatsmeow/static/whatsmeow-darwin-amd64.dylib ./main.go
GOOS=darwin GOARCH=arm64 go build -v -buildmode=c-shared -o ./whatsmeow/static/whatsmeow-darwin-arm64.dylib ./main.go
- name: Commit changes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def build_go_module(self):

setup(
name="whatsfly",
version="0.1.1",
version="0.1.2",
license="MIT",
author="Doy Bachtiar, Otamay, David Arnold, LabFox, Ivo Bellin Salarin",
author_email="[email protected], [email protected], [email protected], [email protected]",
Expand Down
10 changes: 4 additions & 6 deletions whatsfly/dependencies/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,6 @@ func NewWhatsAppClientWrapper(c_phone_number *C.char, c_media_path *C.char, fn_d
w := NewWhatsAppClient(phone_number, media_path, fn_disconnect_callback, fn_event_callback)
handles = append(handles, w)


// try fix run on google colab issue
//C.free(unsafe.Pointer(c_phone_number))
//C.free(unsafe.Pointer(c_media_path))


return C.int(len(handles) - 1)
}

Expand Down Expand Up @@ -937,6 +931,10 @@ func SetGroupTopicWrapper(id C.int, c_jid *C.char, c_topic *C.char) C.int {
return C.int(w.SetGroupTopic(jid, topic))
}

//export Version
func Version() C.int {
return C.int("012")
}


func main() {
Expand Down
1 change: 1 addition & 0 deletions whatsfly/dependencies/wapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extern "C" {
extern int SetGroupLockedWrapper(int id, char* c_jid, bool locked);
extern int SetGroupNameWrapper(int id, char* c_jid, char* name);
extern int SetGroupTopicWrapper(int id, char* c_jid, char* topic);
extern int Version();

#ifdef __cplusplus
}
Expand Down

0 comments on commit 931aa3a

Please sign in to comment.