Skip to content

Commit c636f5b

Browse files
committed
Insomnia 2020.4.2
1 parent 748c4ce commit c636f5b

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## 2020.4.1-22 (2020/09/24)
3+
## 2020.4.2-22 (2020/10/28)
44

5-
* Insomnia 2020.4.1
5+
* Insomnia 2020.4.2
66
* Portapps 2.6.0
77

88
## 2020.3.0-21 (2020/07/23)

build.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ core.dir = ../portapps
55
app = insomnia
66
app.name = Insomnia
77
app.type = electron
8-
app.version = 2020.4.1
8+
app.version = 2020.4.2
99
app.release = 22
1010
app.homepage = https://insomnia.rest
1111

@@ -21,9 +21,9 @@ papp.folder = app
2121
electron.executionstub = Insomnia_ExecutionStub.exe
2222
electron.libfolder = lib/net45
2323
electron.enableautoupdate = false
24-
electron.userdata.file = browser/init.js
25-
electron.userdata.search = app.setPath('userData', path.join(app.getPath('appData'), app.getName()))
26-
electron.userdata.replace = app.setPath('userData', path.join(path.dirname(process.execPath), '..', '..', 'data'))
24+
electron.appasar.file = main.min.js
25+
electron.appasar.search = app.setPath('userData', newPath);
26+
electron.appasar.replace = //app.setPath('userData', newPath);
2727

2828
# Official artifacts
2929
atf.id = Insomnia

build.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,24 @@
1616
<!-- Targets -->
1717
<target name="release" depends="release.app" description="Release"/>
1818

19+
<target name="prepare" depends="load.lib.asar">
20+
<echo message="Preparing release..."/>
21+
22+
<echo message="Extracting app.asar..."/>
23+
<exec executable="asar.cmd" failonerror="true" dir="${build.path}\${papp.folder}\app-${app.version}\resources">
24+
<arg value="extract"/>
25+
<arg value="app.asar"/>
26+
<arg value="app"/>
27+
</exec>
28+
29+
<echo message="Replacing in app.asar..."/>
30+
<assertfile file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file}"/>
31+
<replace file="${build.path}\${papp.folder}\app-${app.version}\resources\app\${electron.appasar.file}" failOnNoReplacements="true">
32+
<replacefilter token="${electron.appasar.search}" value="${electron.appasar.replace}"/>
33+
</replace>
34+
35+
<echo message="Removing app.asar..."/>
36+
<delete file="${build.path}\${papp.folder}\app-${app.version}\resources\app.asar"/>
37+
</target>
38+
1939
</project>

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ func main() {
4040

4141
app.Process = utl.PathJoin(electronBinPath, "Insomnia.exe")
4242
app.WorkingDir = electronBinPath
43+
app.Args = []string{
44+
"--user-data-dir=" + app.DataPath,
45+
}
4346

4447
// Cleanup on exit
4548
if cfg.Cleanup {
@@ -51,6 +54,7 @@ func main() {
5154
}
5255

5356
utl.OverrideEnv("INSOMNIA_DATA_PATH", app.DataPath)
57+
utl.OverrideEnv("INSOMNIA_DISABLE_AUTOMATIC_UPDATES", "true")
5458

5559
defer app.Close()
5660
app.Launch(os.Args[1:])

0 commit comments

Comments
 (0)