Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Oct 15, 2020
1 parent b737b5b commit 9dcb79e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
7 changes: 5 additions & 2 deletions assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ papp.desc = ${app.name} portable on Windows by Portapps
papp.url = https://github.com/portapps/${papp.id}
papp.folder = app

# Electron
electron.appasar.file = app/main.js
electron.appasar.search = electron.app.setPath('userData', path.join(electron.app.getPath('appData'), dirName));
electron.appasar.replace = //electron.app.setPath('userData', path.join(electron.app.getPath('appData'), dirName));

# Official artifacts
atf.id = Rocket.Chat
atf.win32.filename = rocketchat-setup-${app.version}
Expand Down
16 changes: 0 additions & 16 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@
<move todir="${extract.path}">
<fileset dir="${extract.path2}" defaultexcludes="no"/>
</move>

<echo message="Extracting app.asar..."/>
<exec executable="asar.cmd" failonerror="true" dir="${extract.path}\resources">
<arg value="extract"/>
<arg value="app.asar"/>
<arg value="app"/>
</exec>

<echo message="Replacing in app.asar..."/>
<assertfile file="${extract.path}\resources\app\${electron.appasar.file}"/>
<replace file="${extract.path}\resources\app\${electron.appasar.file}" failOnNoReplacements="true">
<replacefilter token="${electron.appasar.search}" value="${electron.appasar.replace}"/>
</replace>

<echo message="Removing app.asar..."/>
<delete file="${extract.path}\resources\app.asar"/>
</target>

</project>

0 comments on commit 9dcb79e

Please sign in to comment.