Comments (10)
Seems like %{app_name}
should be ${app_name}
in Installer.nsi now. This also applies to e.g. %{author}
...
from fbs.
Hey Fredrik,
yes, I did change the directory structure. I still do this to improve fbs for the future. I try to document pretty meticulously what I did (and how you can migrate from earlier versions) on the Releases page.
Are you sure that installer
does not find your Installer.nsi
? I just tested by doing the following steps:
python -m fbs startproject
- Copy the default
Installer.nsi
tosrc/windows/installer/Installer.nsi
- Made a few minor changes to this new copy of
Installer.nsi
python -m fbs clean
,... freeze
,... installer
This did produce the "modified" installer.
app_name
, main_module
and author
are all still there. See here.
Maybe a brief summary of the biggest change: I didn't like the fact that startproject
creates a lot of files that most users won't want to modify. These files are therefore now in a new _defaults
module inside fbs.
from fbs.
I followed your steps exactly and the changes in Installer.nsi are not picked up. You are saying this produce a installer on your end with the changes, but not here on my end. Hmm...
from fbs.
The changes I did to Installer.nsi was to just change the greeting string "This wizard will guide you through...".
I notice that the target/installer/Installer.nsi
contains the change, but the actual installer shows the original, default string.
Are you not seeing this on your end?
from fbs.
I'm attaching my sources. Maybe they will help?
from fbs.
How, odd. Your source produced an installer with the expected changes.
from fbs.
Your source does not have /src/windows/installer
. Instead it uses /src/installer/windows
.
from fbs.
So, after switching the folders around and using src/installer/windows/Installer.nsi
, it seems I am making progress with my actual app.
I am now noticing that the target/installer/Installer.nsi
contains my changes but the variable substitution hasn't happened. I can see ${app_name}
etc. I am running a custom build script which calls fbs.builtin_commands.freeze(debug)
for freeze (and then fbs.builtin_commands.installer()
for installer).
I'm looking in the builtin_commands
module but I can't see anything on variable substitution... any ideas?
from fbs.
Hm, ok weird. When I use your default Installer.nsi, the build script produces an installer without issues. But when I use mine, with my changes, it crashes:
File: "..\%{app_name}\*" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "Installer.nsi" on line 95 -- aborting creation process
My Installer.nsi worked fine prior to updating fbs. This is my Installer.nsi: Installer.zip
from fbs.
Ok, these are my findings, which solved my issues with building the installer using fbs v0.3.9:
- Installer.nsi should reside in
src/installer/windows
(not insrc/windows/installer
) - Change all occurances of
%{
into${
in Installer.nsi
from fbs.
Related Issues (20)
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 114: invalid start byte HOT 1
- Pro -- Updates beyond 1 year? HOT 2
- I want to use Sparkle Is that okay
- freeze on macOS Monterey gives warnings HOT 7
- Sentry exception events occurring in main thread are not flushed to Sentry (fbs Pro feature) HOT 3
- Double-clicking <AppName>.app does not launch application on macOS HOT 1
- fbs installer encoding issue + different error messages in and out of IDE
- Icons in src/main/icons are not carried over into the installation HOT 1
- PyInstaller >= 5.6 does not require `_fix_sparkle_delta_updates()` when freezing on MacOS HOT 2
- Issue with openpyxl library when running fbs freeze HOT 1
- FBS with Pyqt6 HOT 4
- "fbs freeze" does not work with the default program HOT 8
- When Running fbs release get cannot upload HOT 1
- FBS cannot find makensis even though it is installed HOT 2
- (Pro) No module named 'fbs_runtime.application_context' when running app that was released via buildvm/runvm HOT 6
- installer exe permission HOT 3
- fbs buildvm ubuntu command failing HOT 3
- QTabwidget Tab text area is white when selected, nothing can be seen HOT 3
- fbs pro experiencing problems with PySide2 (`no module named 'inspect'`) HOT 2
- how to build x86_64 and arm64 target on macos in Apple M1 chip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbs.