Comments (12)
I can confirm the same issue
from archetype.
@aggalex Interesting... I'm actually just using GLib.File to change the folder's path. I may try to do a mv
command to see if that works better.
Can you try to move the folder manually from /tmp and see if it lets you or gives you an error? In your log it was /tmp/com.github.aggalex.myapp
.
from archetype.
Made work directory in /tmp,and Archetype worked as expected.
Project is created and moved,but its tied to /tmp.
from archetype.
When you say that it's tied to /tmp, what message or error are you getting when you try to move it elsewhere? As long as you remove the build directory and rebuild (which may not be necessary) it should rebuild fine. That said, I know for the Gnome Builder file that I specify the export path there and you might have to adjust that file if you move it. I'm not 100% certain on how that file works I just know it has a project path specified so I figured I'd replace it in case it was needed...
Edit: I'm also working on an update that attempts to use the mv
command instead of Glib to change the directory as well. Hopefully I'll have that finished tonight and out by tomorrow. Not 100% sure on if that'll help in your case though.
from archetype.
I suck at explaining stuff 😄
Creating work directory in /tmp and setting project path to it,allows Archetype to do its magic.
It creates project specified by me,without any errors.
Moving work directory out of /tmp to any other location does not break anything at all.
I moved it to home and it built and ran without any issues what so ever.
By tied to /tmp I meant to say,that project will only be created if dest_dir
is located in /tmp.
Later moving whole work directory from /tmp does not break a single damn thing.
Kudos and thanks for this beautiful app!
from archetype.
Sorry for not replying on time, I didn't have the time too...
So I tried making Archetype generate an instance, and copying the folder created to my designated place. Archetype seems to be deleting the folder from tmp a while after, so I had to be fast. But I finally made it! Had problems with compiling it though. Ether I don't know how, or there's something missing. Here's the directory tree of my dummy app's folder:
.
├── app
├── AUTHORS.md
├── com.generic.rdnn.json
├── data
│ ├── com.generic.rdnn.appdata.xml
│ ├── com.generic.rdnn.desktop
│ ├── com.generic.rdnn.gresource.xml
│ ├── com.generic.rdnn.gschema.xml
│ ├── css
│ │ └── style.css
│ ├── images
│ │ ├── com.generic.rdnn.png
│ │ ├── com.generic.rdnn.svg
│ │ ├── icons
│ │ │ ├── 128
│ │ │ │ └── com.generic.rdnn.svg
│ │ │ ├── 16
│ │ │ │ └── com.generic.rdnn.svg
│ │ │ ├── 24
│ │ │ │ └── com.generic.rdnn.svg
│ │ │ ├── 32
│ │ │ │ └── com.generic.rdnn.svg
│ │ │ ├── 48
│ │ │ │ └── com.generic.rdnn.svg
│ │ │ └── 64
│ │ │ └── com.generic.rdnn.svg
│ │ └── screenshot.png
│ └── meson.build
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── rules
│ └── source
│ └── formart
├── LICENSE.md
├── meson
│ └── post_install.py
├── meson.build
├── po
│ ├── com.generic.rdnn.pot
│ ├── LINGUAS
│ ├── meson.build
│ └── POTFILES
├── README.md
├── src
│ ├── Application.vala
│ ├── configs
│ │ ├── Constants.vala
│ │ └── Settings.vala
│ ├── controllers
│ │ └── AppController.vala
│ ├── Main.vala
│ ├── meson.build
│ ├── views
│ │ └── AppView.vala
│ ├── widgets
│ │ └── HeaderBar.vala
│ └── Window.vala
└── tests
├── assert.vala
├── meson.build
└── test.vala
from archetype.
@pavlepiramida So it sounds like it has some issue with moving to a directory outside of /tmp, but once it's created you can take it anywhere and it will work fine.
@aggalex I realized that when I started to look at the code last night. If it succeeds or fails it will attempt to clean up the /tmp directory of any folders created. I'll adjust that in my (attempted) fix. As for building the app, you should be able to open the terminal to your app's folder and run:
./app install-deps && ./app install && ./app test-run
install-deps
will install any missing dependencies, while install
will install the resources and test-run
will build, test and run the application.
After you have run install-deps
and install
, you can just run test-run
going forward. If you add any additional resources or change icons you'll need to re-run install
but until then test-run
is enough.
from archetype.
@pavlepiramida, @aggalex Version 1.0.2 is out now. See if that helps!
from archetype.
I will do that when I finish my economics exams. Thanks!
from archetype.
Works like a charm now!
from archetype.
It indeed works perfectly now. Perhaps You'd like to close the issue.
from archetype.
Great! Closing this out as resolved!
from archetype.
Related Issues (11)
- Remove use of Granite.Application for templates HOT 1
- Settings schema '<app namespace>' is not installed
- Publish in Juno
- Package as Flatpak for elementary OS 6
- Simplify app choosing UI
- Chooser for Category and Tags
- UI Preview for Branding
- Add Switchboard template
- Need ability to customize default namespace
- Missing changelog information
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 archetype.