Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

WhatsApp 2.2210.9 #50

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app = whatsapp
app.name = WhatsApp
app.type = electron
#app.version =
app.release = 32
app.release = 33
app.homepage = https://www.whatsapp.com

# Portable app
Expand All @@ -21,15 +21,12 @@ papp.folder = app
electron.executionstub = WhatsApp_ExecutionStub.exe
electron.libfolder = lib/net45
electron.enableautoupdate = false
electron.appasar.file = main.js
electron.appasar.search = CHECK_UPDATE_URL:"https://web.whatsapp.com/check-update"
electron.appasar.replace = CHECK_UPDATE_URL:"https://reqbin.com/echo/get/json"
electron.appasar.file0 = main.js
electron.appasar.search0 = return"web.whatsapp.com"
electron.appasar.replace0 = return"reqbin.com"
electron.appasar.file1 = renderer.js
electron.appasar.search1 = CHECK_UPDATE_URL:"https://web.whatsapp.com/check-update"
electron.appasar.replace1 = CHECK_UPDATE_URL:"https://reqbin.com/echo/get/json"
electron.appasar.file2 = voip.js
electron.appasar.search2 = CHECK_UPDATE_URL:"https://web.whatsapp.com/check-update"
electron.appasar.replace2 = CHECK_UPDATE_URL:"https://reqbin.com/echo/get/json"
electron.appasar.search1 = https://web.whatsapp.com/check-update
electron.appasar.replace1 = https://reqbin.com/echo/get/json

# Official artifacts
atf.id = WhatsApp
Expand Down
10 changes: 3 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,14 @@
</exec>

<echo message="Replacing in app.asar..."/>
<assertfile file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file}"/>
<replace file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file}" failOnNoReplacements="true">
<replacefilter token="${electron.appasar.search}" value="${electron.appasar.replace}"/>
<assertfile file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file0}"/>
<replace file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file0}" failOnNoReplacements="true">
<replacefilter token="${electron.appasar.search0}" value="${electron.appasar.replace0}"/>
</replace>
<assertfile file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file1}"/>
<replace file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file1}" failOnNoReplacements="true">
<replacefilter token="${electron.appasar.search1}" value="${electron.appasar.replace1}"/>
</replace>
<assertfile file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file2}"/>
<replace file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file2}" failOnNoReplacements="true">
<replacefilter token="${electron.appasar.search2}" value="${electron.appasar.replace2}"/>
</replace>

<echo message="Removing app.asar..."/>
<delete file="${build.path}\${papp.folder}\app-${app.version}\resources\app.asar"/>
Expand Down